Write a program that: 1) Asks from the user an integer number N (N>10) 2) Creates N
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: