Operating System Chapter 3
Operating System Chapter 3
02
03
04
05
Schedule/Dispatch
Completion
New Ready Run Terminated
Priority/Time quantum
Resume
I/O completion
Suspend
Wait/Block
Suspend Ready
Resume Suspend
PCB
This information includes a process priority,
PCB 04 pointers to scheduling queues, and any other
scheduling parameters.
This information may include such information as the
value of the base and limit registers, the page tables,
Highlights 05 or the segment tables, depending on the memory
system used by the operating system.
This information includes the list of I/O devices allocated to the process,
07 a list of open files, and so on. In brief, the PCB simply serves as the
repository for any information that may vary from process to process.
Swap in Partially executed Swap out
swapped-out processes
Child
Fork a child
executes
1
2 The key idea behind a medium-term scheduler is that
sometimes it can be advantageous to remove
processes from memory (and from active contention
3
for the CPU) and thus reduce the degree of
multiprogramming.
2
process Po operating system process P1
Interrupt or system call
executing