Question: Question 2 data files and read one data from each file Write a C program which creates two child alternatively and print it on screen.

Question 2 data files and read one data from each file Write a C program which creates two child alternatively and print it on screen. processes. One of the child processes must open data1.txt and fill it with 10 random Sample Run integers (0-9). The other child process must $ ./question2 open data2.txt and fill it with 10 random (PARENT] Child process ID: 5379 [PARENT] Child process ID: 5378 letters (a-z). In the meanwhile, parent must (CHILD1] Wrote: 6 2 8 6 7 3 3 1 8 4 to print both child processes' id's and wait for file. [CHILD2] Wrote: fynh jwxk p m to them to finish. Then, it must open both file. [PARENT] 6 f 2 y 8 n 6 h 7 j 3 w 3x1 k 8 p 4 m
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
