Chapter 3 Processes Flashcards
Job queue
set of all processes in the system
Ready queue
set of all processes residing in main memory, ready and waiting to execute
Device queues
set of processes waiting for an I/O device
Long-term scheduler (or job scheduler)
selects which processes should be brought into the ready queue
Short-term scheduler (or CPU scheduler)
selects which process should be executed next and allocates CPU
When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a
context switch
_________ of a process represented in the PCB
Context
Resource sharing
Parent and children share all resources
Children share subset of parent’s resources
Parent and child share no resources
Execution
Parent and children execute concurrently
Parent waits until children terminate
Generally, process identified and managed via a
process identifier (pid)
_______ process cannot affect or be affected by the execution of another process
independent
_______ process can affect or be affected by the execution of another process.
Cooperating
Advantages of process cooperation
Information sharing
Computation speed-up
Modularity
Convenience