Process Management Flashcards
What is process creation ?
Processes can be created by another program or process.
The act of creation is called spawning.
Each processes is represented by a Process Control Block (PCB).
Give an example of process creation in a UNIX command line
startup = sched
ancestor = init
fork() = duplicate process
exec() = replace child with new program
What is process scheduling ?
Only one process runs at a time.
Others wait in memory / disk.
Context switching (from one process to another) is time consuming.
What are the process scheduling levels ?
High Level (HLS): Admit or reject new processes
Medium level (MLS): Suspend or resume processes
Low-Level (LLS): Pick the next process for the CPU
What is the the three state model ?
READY - waiting for CPU
RUNNING - executing
BLOCKED - waiting for I/O
What transitions are involved in the three / five state model ?
dispatch, timeout, I/O wait, I/O Completion, termination.
What is the five state model ?
Adds READY SUSPENDED, and BLOCKED SUSPENDED
What is the process life cycle ?
READY –> RUNNING,
RUNNING –> BLOCKED (after I/O request),
BLOCKED –> READY (once I/O completes),
READY –> RUNNING (when CPU is available)