Question: Assign tasks to child process using fork in C language usage: ./a.out 1000, 3000 ... The program does total of n tasks using fork. In

Assign tasks to child process using fork in C language

usage: ./a.out 1000, 3000 ...

The program does total of n tasks using fork. In each child process, it sums up from 0 to the current argument and then print out the result

for example, for argv[1]=1000, it sums up from 0 to 1000, then print out the result. then in another child process, it sums up 0 to 3000 then print out the result.

Pls write it in C language using fork

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!