next up previous
Next: System Calls Up: Process Creation Previous: Arguments:

Tasks Done

Create stack space

Create process table entry

Fill priority, name, registers and other fields of process table entry. (what values should the PC and initial state contain?)

Simulate a call to procedure to be executed. Copy arguments to the stack of the new process and fill return address of a routine ( userret) that calls the kill procedure. Thus kill also handles normal termination.

Returns process id.


Prasun Dewan
Tue Jan 20 11:58:31 EST 2004