OS application management execution
Process elements
Process
process control block
process interruption
process control block storage
identifier
state
priority
program counter
memory pointers
context data
I/O status information
accounting information
trace of a process
Dispatcher
small program that switches processor from 1 process to another
2 state process model
2 state process model dispatcher behavior
Any interrupted process is transferred to queue of waiting processes by dispatcher
- If process is completed/aborted, it is discarded and exits system via dispatcher
- Dispatcher takes process from queue to execute
Process creation
OS builds data structures used to manage the process and allocates address space in main memory to process
process creation reasons
process spawning
Process termination
computer system must provide means for a process to indicate its completion
process termination reasons
5 state process model