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
Wed Jan 9 17:49:41 EST 2002