Question: Write a program that: 1) Asks from the user an integer number N (N>10) 2) Creates N processes that: a) Each process prints its own
Write a program that:
1) Asks from the user an integer number N (N>10)
2) Creates N processes that:
a) Each process prints its own PID
b) Each process prints the current time (Tip: check the C date and time funcations)
3) The parent process should print its own ID
4) Run the program 5 times and keep the output. Is it different in some cases?
Explain why this happens
5) Are the PIDs of the processes the same each time you execute the program ?
6) What is the maximum limit to the number of processes possible in a Unix system ? Verify with your program
Step by Step Solution
3.38 Rating (148 Votes )
There are 3 Steps involved in it
Heres the program that creates N processeseach pri... View full answer
Get step-by-step solutions from verified subject matter experts
