PDA

View Full Version : Operating System- CS604 Assignment # 01 idea solutions fall 2011



rabeel
11-02-2011, 10:32 PM
Question # 1:
“Commonly it considered that degree of multiprogramming is affecting CPU utilization and always increase the CPU utilization.” In either case “yes” or “no”, justify the given statement with strong arguments. Write the answer in your own words.
Answer:
Yes it does effect the CPU.
Question # 1:
Write a program in C language and run it in Linux environment that
displays the following results:
1. Display the Process ID of the Parent processes
2. Then execute a fork() call
3. If call is successful on fork( ) execution then display the process identifier
of the Child process which returned to the Parent process Or Display the
Process ID of Child process
4. Show that Process ID of the Parent process does not change before and
after fork() call.
5. Child process display a message “I AM CHILD PROCESS”
6. Parent process display a message “I AM PARENT PROCESS”

somii
11-03-2011, 01:39 AM
plzzzz give the idea of this assignment........