 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
• |
Unix/Linux
|
|
|
|
– |
Create
a new (child) process – fork();
|
|
|
• |
Allocates
new PCB
|
|
|
|
• |
Clones
the calling process (almost)
|
|
|
|
– |
Copy
of parent process address space
|
|
|
|
– |
Copies
resources in kernel (e.g. files)
|
|
|
|
• |
Places
PCB on Ready queue
|
|
|
|
• |
Return
from call
|
|
|
|
– |
0 for
child
|
|
|
|
– |
child
PID for parent
|
|