Home / Questions / Problem Overview You must use fork and pipe to complete this project This project create...
Problem Overview
You must use fork and pipe to complete this project.
This project creates processes to add all numbers in a file. The user will enter a number (1, 2, or 4) of parallel processes to create for processing the numbers. Thesystem will then create this many processes, evenly dividing the file contents between the processes. For example, if the file has 1000 numbers and the user wants 4processes, then each process would process 250 numbers in the file.
III. System Description
The system is illustrated in the diagram shown below. The processes are as follows:
1. Parent process. This process allows user to input the number of processes to create (1, 2, or 4). It determines what portion of the file each process must work onand informs the process via a pipe. It then waits for each child to report its result. Once each result is received, it combines the results prints the overallresult.
2. Child process. Receive which part of the file to process. Process the file and send results back to the parent process.
Note: there are three data files given with random number which are need to be read.
thanks.And these files are read through user command.Please make relevant comments.
May 27 2020 Read more Less More
Pop Corporation acquired 80 percent of Son Corporation s common stock on January 1, 2016, for $420,000 cash. The stockholders equity of Son at this time consisted of $300...
Apr 18 2020Marketing intermediaries are:a. management consulting firms that advise producers on distribution strategy.b. shoppers who are paid to purchase products for busy customer...
Sep 06 2020Give a brief introduction to CEO's Salary in the Organizations. Can you describe the CEO's Salary in the Organizations one should pick? >
May 01 2020Grey Ground Services is a well-known international ground services company with over 1,200 employees in Hong Kong. The below table shows the incidents that happened to To...
Aug 23 2020The effect of writing off an account receivable as a bad debt under the allowance method.05_178Reference: 05_183Listed below are five terms followed by a list of phrases ...
Feb 01 2020For Lenovo and Hewlett Packard companies listed below, complete the common-size statements by dividing each item on the income statement by sales revenue. Record the resu...
Jun 27 2020In bin A, 40% of the marbles are red. In bin B, 52% of the marbles are red. You select a simple random sample of 30 marbles from bin A and 40 marbles from bin B. What is ...
Apr 20 2020If an individuals score profile on the PGI produces discrepancy between interests and competence, how would you interpret these results? Please provide a minimum of two s...
Aug 09 2020a is the probability of a Type I error, which occurs when we accept the alternative H1 when the null hypothesis Ho is true. True False A Type II error occurs when when a ...
May 01 2020The file P02_07.xlsx includes data on 204 employees at the (fictional) company Beta Technologies. For this problem, consider this data set as the population frame.a. Usin...
May 08 2020Welcome to MyCourseHelp Services, World's leading Academic solutions provider with Millions of Happy Students.