This just needs to be a basic c++ program.
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. The system 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 4 processes, 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 on and informs the process via a pipe. More specifically, the first child process handles the first block in the file, and the second child process handles the second one and so on. The parent then waits for each child to report its result. Once each result is received, it combines the results prints the overall result.
2. Child process. Receive which part of the file to calculate from the parent process through pipe. Process the file and send the result back to the parent process through pipe.
cannot use absolute file name in project
Looking to make some money?
- Set your budget and the time frame
- Outline your proposal
- Get paid for your work
Bids on this Project
To work in a globally competitive environment on challenging assignments that shall yield the benefit of work satisfaction, and offer continuous growth and learning opportunities. Expertise in following areas (Front-end and Back-end) JAVAEE JSF JAVA MySQL C++ UML HTML CSS Bootstrap Foundation
jkljlksjvkl dnhfkohfhsvkhklnknlknkljh fdj jwlk ///////////////////// .wv,nk nnkjhkjh sakbckdh hkhkjjjjjjjjjjjjh aksjughnkjhlkf dsanklhlkhsnghoihgwnklnbdvnhfwmdsfkjnfkhifehiu ,gco