7 Nov 2017

TASK ON LINUX (FORK SYSTEM CALL)

1) Write a program to create 3 child process. All child processes should create from the single parent not nested into another child process. Each child process prints its PID and random counter with random intervals(Ex: when child 1 starts running then it first print its PID and it starts printing random counter from zero to counter value with random delays and finally exit to the main process. ).The main process should wait until all child processes complete their work.