Fork and pipe with .dat files in c++

Budget $10 - $30 USD
Bids 4
Average Bid $50
Status Closed

This just needs to be a basic c++ program.

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. 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

Get Free Quotes For A Project Like This

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • juniadsarfraz Profile Picture


    Islamabad,  Pakistan

    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

  • ARKSolution2015 Profile Picture


    lahore,  Pakistan

    ARK Solution is a Team of highly competent developers, programmers, designers, SEO experts and writers with more than 5 years of experience. We love to work hard to meet the deadlines and looks to excel in IT Field. We have developed projects for our clients where we have maintained high standards and that is the reason we do not take up jobs where we feel we have to compromise on the quality aspect. Pretty much good in these. ✔ C ✔ C++ ✔ Java ✔ Html ✔ Css ✔ Php ✔ Javascript ✔ Word-press ✔ Matlab ✔ Mysql ✔ PsdToHtml ✔ CodeIgniter ✔ Database ✔ Article Writing ✔ Article rewriting ✔ Report Writing ✔ Business plans ✔ Technical Writing ✔ Content Writing ✔ SRS ✔ ERD ✔ UML Diagrams We work towards providing reliable, relevant and robust IT solutions at most competitive prices to our customers. we ensure 100% customer satisfaction. If you are looking for a top class and high quality work with professional communication, look no further than ARK Solution. Regards ARKSolution

  • yamaf555 Profile Picture


    DONGGANG,  China

    You are my alter ego forever! - Yamaf I am an iOS, android and web developer with a Bachelor of Science in Information Technology from Tsinghua University and 5 years of software development experience. I am experienced in web development with site building technologies using wordpress and codeigniter framework, and I have the ios and android app development technologies perfectly. I have a working experience with MVC. I have also designed and developed web user controls, master pages, validation controls, CSS files using technologies like AJAX Toolkit, jQuery, JavaScript, XML HTML and DHTML. Additionally, I have written a lot of project for android and iOS app. When working on a new project, I like to speak with my clients so that I can have a clear understanding of their needs and vision of the project. Thank you in advance for your time and consideration. I look forward to working with you soon.

  • appmaster1 Profile Picture


    dehradun,  India

    jkljlksjvkl dnhfkohfhsvkhklnknlknkljh fdj jwlk ///////////////////// .wv,nk nnkjhkjh sakbckdh hkhkjjjjjjjjjjjjh aksjughnkjhlkf dsanklhlkhsnghoihgwnklnbdvnhfwmdsfkjnfkhifehiu ,gco