next up previous
Next: Interrupts and Interrupt Vectors Up: No Title Previous: Process Management Operations

Representing a process - the PCB

A process is represented by the PCB (Process Control Block) or PD (Process Descriptor), which contains the following :

  figure54
Figure:

Assume - ReadyQ is priority ordered

BEGIN
  disable interrupts
  initialise data structures
  create initial processes

  REPEAT (FOREVER)
    Dispatch process
     

  ENTER :
   save registers of current process
   determine the source of interrupt
   service interrupt or call
 END (repeat)
END

Things to consider :

The Dispatcher does the following (more later) :

    REPEAT (FOREVER)

	Run thread (process)
 	Save state (into PCB 
	   or TCB (thread control block))
	Choose new thread (process) to run
	Load state into PCB (TCB)

    END



Omer F Rana
Thu Feb 6 16:16:03 GMT 1997