Question: Operating Systems Design Labwork - Processes and Fork You are expected to implement a C program that uses fork and exec calls. The design steps

Operating Systems Design Labwork - Processes and Fork You are expected to implement a C program that uses fork and exec calls. The design steps will be as follows: 1) The parent process will fork 2 children processes. No Child process will create another one. 2) The first child will print the letters from 'A' to 'Z', into a text file, once a second. After printing 'Z', it will quit. This process will not print the letters to the screen. 3) The second child will execute a program to simultaneously follow the text file's contents. That is, whenever a letter is printed into the file, this second child will print it out to screen. The command that should be executed can be, "tail - textfile". But remember, this child will not terminate itself. 4) At the same time, the parent process will be waiting for one child to exit. After it is notified of a child death, it will kill all occurrences of the "tail" program. This can be achieved by executing the "killall tail" command
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
