Process Scheduling Flashcards
Name the four types of scheduling
Long term
Medium Term
Short Term
I/O
What is long term scheduling?
The decision to add to the pool of processes to be executed
What is medium term scheduling?
The decision to add to the number of processes that are partially or fully in main memory
What is short term scheduling?
The decision as to which available process will be executed by the processor
What is I/O scheduling?
The decision as to which process’s pending I/O request shall be handled by an available I/O device
Name the two types of queues
Job Queue and Ready Queue
What is the job queue?
a list of all the processes or jobs that are waiting to be executed. These processes are typically in a “new” or “created” state.
What is the ready queue?
The processes that are residing in main memory and are ready and waiting to be executed are kept in a list called a ready queue.
What is the difference between preemptive and non-preemptive scheduling?
Preemptive scheduling allows the operating system to interrupt and switch between processes at any time.
Non-preemptive scheduling only allows processes to be switched voluntarily by the process itself.
Preemptive is more responsive, while non-preemptive is simpler but less responsive.
What are i/o bound processes?
spends more time doing I/O than computations, many short CPU bursts
What are CPU bound processes?
spends more time doing computations; few very long CPU bursts
What is the effect of swapping on OS Overhead?
The OS needs to maintain and manage the swapping process, which includes keeping track of the status and location of swapped-out programs, deciding which programs to swap in or out, and performing the actual data transfer operations. This management requires CPU cycles and resources.
List five (5) performance criteria that can be used for selecting or comparing CPU scheduling algorithm.
- CPU Utilization: measures the extent to which the CPU is kept busy processing tasks.
- Throughput: refers to the number of processes completed per unit of time.
- Turnaround Time: total time taken from the submission of a process to its completion.
- Waiting time: measures the total time a process spends waiting in the ready queue before it is executed.
- Response time: time taken from when a request is made until the first response is produced.