Process Creation and Control
Process Creation and Control
User
Created
Running
Trap / Intr Schedule
Memory? No memory?
Return
Kernel Preempt Ready Ready
Running in memory swapped
Swap in/out
Wakeup Wakeup
Sleep
Terminated Asleep Asleep
in memory Swap out swapped
• How can the child realize that it is the child and not
the parent?
• How can we make the child and parent do different
things?
}
}
main()
{
int shmid, *a, *b, i;