Friday, November 18, 2011

Process Control Block

  1. the process is defined and maintained by the operating System using its (process) process control block
  2. the process is scheduled by the OS
  3. the PCB is stored in the protected space of the kernel
  4. the PCB contains the following info about the process state
    1. process ID
    2. process priority
    3. parent process id (if any)
    4. child process id (if any)
    5. address to the next PCB which will next run
    6. allocated program memory address block both in physical and virtual memory for the code of the process itself 
    7. allocated process specific data address block
    8. allocated process heap (runtime) addresses
    9. allocated process specific stack address for the functions called during the running of the process
    10. allocated address of the CPU register (Program counter and Stack pointer)
    11. process state signal mask ( when 0 process inhibited from running, when 1 allowed to run)
    12. signals and messages dispatch table for IPC
    13. OS allocated resources ( file, device, device buffer, socket) descriptors
    14. security restrictions and permissions

References

Embedded Systems, architecture programming and design by Raj Kamal

No comments: