What fundamental concept is the basis of multiprogrammed operating systems?
CPU scheduling.
In modern operating systems, what is actually being scheduled by the OS instead of processes?
Kernel-level threads.
What two scheduling terms are often used interchangeably, despite the technical difference?
Process scheduling and thread scheduling.
In the context of CPU scheduling, the phrase “run on a CPU” implies that a process is running on what specific component?
A CPU’s core.
In a system with a single CPU core, how many processes can run at any given time?
Only one process.
What is the primary objective of multiprogramming with respect to the CPU?
To have some process running at all times, in order to maximize CPU utilization.
In a multiprogramming system, what does the operating system do when the currently running process has to wait?
It takes the CPU away from that process and gives the CPU to another process.
Process execution consists of a cycle of alternating between which two types of bursts?
CPU bursts and I/O bursts.
A process’s execution cycle begins with what type of burst?
A CPU burst.
How does the final CPU burst of a process typically conclude?
With a system request to terminate execution.
The frequency distribution of CPU bursts is characterized by a large number of _____ bursts and a small number of _____ bursts.
short, long
What component of the operating system selects a process from the ready queue to be executed when the CPU becomes idle?
The CPU scheduler.
Is the ready queue necessarily implemented as a First-In, First-Out (FIFO) queue?
No, it can be implemented as other structures like a priority queue, a tree, or an unordered list.
What data structure generally represents a process in the records of a ready queue?
The Process Control Block (PCB).
Term: Nonpreemptive Scheduler
A scheduler where once the CPU has been allocated to a process, the process keeps it until it releases it by terminating or switching to the waiting state.
Term: Preemptive Scheduler
A scheduler where a process that has been allocated the CPU can have it taken away before it terminates or voluntarily switches to the waiting state.
What is the name of the module that gives control of the CPU’s core to the process selected by the CPU scheduler?
The dispatcher.
What are the three steps involved in the dispatcher’s function?
Term: Dispatch Latency
The time it takes for the dispatcher to stop one process and start another one running.
Term: CPU Utilization
A scheduling criterion that measures the percentage of time the CPU is utilized.
Term: Throughput
A scheduling criterion that measures the number of processes that complete their execution per time unit.
Term: Turnaround Time
A scheduling criterion measuring the interval from the time a process enters the system to the time of its completion.
How is turnaround time calculated?
Turnaround time = completion time − arrival time.
Term: Waiting Time
A scheduling criterion that measures the sum of the time a process spent waiting in the ready queue.