Develop parallel version of factorial calculation program

Assignment Help Computer Engineering
Reference no: EM133177938

Question: Consider the scenario of distributed memory as given in below requirements:

Requirement # 1: The processor 0 compute the factorial of the input number and returns the answer to processor 1.

Requirement # 2: The communication between processor 0 and 1 is blocking.

Requirement # 3: The computed result is printed first at processor 0 and then the received answer is printed at processor 1.

a. Develop parallel version of factorial calculation program for distributed memory using MPI. The sequential version is given below to start with.

b. Also, comment on how will you develop the parallel version?

#include<stdio.h>

void main(){

int i, f=1, num;

printf(" input the number");

scanf("%d",&num);

for( i=1; i<=num;i++)

f=f*i;

printf("the factorial of %d is: %dn",num,f);

}

Reference no: EM133177938

Questions Cloud

Identify another recent business takeover : Identify another recent business takeover of your choice(from any sector).Outline the case and explainwhy there may have been different issues in that case
Prepare the journal entries for the transactions : Prepare the journal entries for the above transactions. It is not necessary to use control accounts and subsidiary ledgers. Prepare closing entries for year-end
Explain your methods and justify your assumptions : Explain your methods and justify your assumptions for forecast performance under new ownership. You should append 2 screenshotsfrom aspreadsheet model
Prepare the adjusting journal entries on june : On March 1, 2021 the business bought Office furniture for $5,000. Prepare the adjusting journal entries on June 30, 2021
Develop parallel version of factorial calculation program : Develop parallel version of factorial calculation program for distributed memory using MPI. The sequential version is given below to start with
What objections are you most likely to get : You are responsible for booking events at Premier Hotel, a five-star hotel. What objections are you most likely to get
What commands might you look for : What commands might you look for and When attacker C2 traffic is visible and stands out the most in network traffic, this is referred to as using
What shall we gain : We want to switch to a 4 year 8% bond with a market rate of 6%. What shall we gain if we act on our expectation, and it transpires
How much can mike and rose deduct : Mike and Rose are married and file jointly. Mike earns $45,000 from wages and Rose reports $450 of net profits. How much can Mike and Rose deduct

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd