Question: Question 2 as well. Parent should display process ID's Write a C program which creates a child of both child processes and terminate only process.

Question 2 as well. Parent should display process ID's Write a C program which creates a child of both child processes and terminate only process. This child process must write after both of them are terminated. 1.000.000 random integers to a text file, each seperated by one space character and Sample Run then terminate. Parent process must wait $ ./question2 for this child process to terminate, then (CHILDI] Wrote 1000000 integers to [PARENT] Child process ID: 22678 create an another child process. This new numbers.txt, terminating. child process must count how many of the [PARENT] Child process ID: 22679 [CHILD2] Even numbers: 682722, odd numbers in the text file are even and how numbers: 317278, terminating. many of them are odd and then terminate [PARENT] Terminating
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
