Join 75,000+ students acing their exams with Studygenie
Unlimited practice
Flashcards, multiple choice and written questions, as many as you want.
Study sets in seconds
Turn your notes and files into a set with AI.
See your progress
Always know what you've learned and what's left.
Questions in this set (45)
What distinguishes a preemptive scheduling algorithm from a non-preemptive one?
It may stop the currently running process and choose another process to run
How is the priority of a process or thread typically represented?
As a numeric value indicating its importance relative to other processes
What does the formula Sn+1 = aTn + (1-a)Sn represent in the context of process scheduling?
A method for calculating the estimated next CPU burst time
What is the primary function of long-term scheduling in process management?
Decides when a process should enter the ready state and start competing for CPU
How is CPU utilization calculated in a multi-process system?
As the sum of individual fractions of CPU times used by each process
How does short-term scheduling differ from long-term scheduling?
It decides which of the ready processes should run next on the CPU
How is turnaround time defined in process scheduling?
The time between a process's arrival and departure
What potential issue can arise with Shortest Time First (STF) and Shortest Remaining Time (SRT) scheduling algorithms?
Starvation, where some processes are indefinitely postponed
What is the key characteristic of an interactive process?
It communicates in the form of dialogue, receiving commands and generating output
How does the Round Robin algorithm determine process priority?
By a process's position in a single queue of processes
Short-term scheduling
decides which of the ready processes should run next on the CPU.
preemptive scheduling algorithm
may stop the currently running process and choose another process to run.
- A new process enters the ready list.
- A previously blocked or suspended process re-enters the RL.
- The OS periodically interrupts the currently running process to give other processes a chance to run
priority of a process
is a numerical value that indicates the importance of the process relative to other processes. The scheduler uses this value to decide which process to run next.
arbitration rule
decides which process should proceed if two or more processes have the same priority.
Departuree
The point in time when the process leaves the RL by entering the blocked or suspended state, or by terminating all work.
Attained CPU time
The amount of CPU time used by the process since arrival.
Real time in system
The amount of actual time the process has spent in the system since arrival.
Total CPU time
The amount of CPU time the process will consume between arrival and departure. For short-term scheduling, total CPU time is sometimes called the CPU burst.
Perioddddd
A time interval during which a periodically repeating computation must be completed. The end of each period is the implicit deadline for the current computation.
Long-term scheduling
decides when a process should enter the ready state and start competing for the CPU.
non-preemptive - scheduling algorithm
allows a running process to continue until the process terminates or blocks on a resource.
Arrivallll
The point in time when the process enters the ready queue.
External priority
A numeric priority value assigned to the process explicitly at the time of creation.
What is Deadline
A point in time by which the work of the process must be completed.
batch process
performs a long-running and generally repetitive task that does not require any intervention from the user. Ex: Payroll, insurance claims processing, weather prediction, scientific calculations.
FIFO (First-In-First-Out) algorithm
schedules processes strictly according to the process arrival time. The earlier the arrival, the higher the priority. Theoretically, multiple processes could have the same arrival time, in which case the arbitration rule can pick a process at random.
FIFO (First-In-First-Out) algorithm
Is non preemptive
SJF (Shortest Job First) algorithm
schedules processes according to the total CPU time requirements. The shorter the required CPU time, the higher the priority. If multiple processes have the same CPU time requirement, then the arbitration rule can select a process based on the arrival times.
SJF is non-preemptive.
SRT (Shortest Remaining Time) algorithm
schedules processes according to the remaining CPU time needed to complete the work. The shorter the remaining CPU time, the higher the priority. If multiple processes have the same remaining time requirement, then the arbitration rule can select a process based on the arrival times.
SRT (Shortest Remaining Time) algorithm
SRT is the preemptive version of SJF.
turnaround time
is the time between arrival and departure, and is the sum of the total CPU time and the waiting time.
The average turnaround time (ATT)
set of n processes is the mean of the n individual turnaround times.
Starvation
is the indefinite postponement of a process while other processes are allowed to proceed. Both SJF and SRT can lead to starvation
interactive process
communicates with the user in the form of a dialog by receiving commands or data from the keyboard or a pointing device and responding by generating output on the user's terminal or another output device.
time quantum , Q,
Q, is a small amount of time (typically 10 to 100 milliseconds) during which a process is allowed to use the CPU.
round-robin (RR) algorithm
priority is determined by a process's position within the queue.process at the head of the queue has the highest priority and is allowed to run for Q time units. When Q ends, process is moved to the tail of the queue and next process now at the head of the queue is allowed to run for Q time units.
Multilevel (ML) scheduling
maintains a separate queue of processes at each priority level. Within each level, processes are scheduled using RR.
multilevel feedback (MLF) algorithm
a newly arriving process enters the highest-priority queue, N, and is allowed to run for Q time units. When Q is exceeded, the process is moved to the next lower priority queue, N-1, and is allowed to run for 2Q time units.
multilevel feedback (MLF) algorithm
The quantum size is doubled with each decreasing priority level. Thus at priority level L, the maximum time allowed is 2(N-L)Q time units.
response time
is the elapsed time from the submission of a request (pressing the Enter key or clicking a mouse button) until the response begins to arrive. Guaranteeing adequate response time is the primary goal in the scheduling of interactive processes.
real-time process
is characterized by continual input, which must be processed fast enough to generate nearly instantaneous output. Each arriving input item is subject to a deadline. Ex: Streaming of audio or video, processing and displaying radar data, control of robots or of fly-by-wire aircraft.
rate monotonic (RM) algorithm
schedules processes according to the period. The shorter the period, the higher the priority.
RM is preemptive.
earliest deadline first (EDF)
algorithm schedules processes according to the shortest remaining time until the deadline. The shorter the remaining time, the higher the priority.
is preemptive.
A schedule is feasible
if the deadlines of all processes can be met.
CPU utilization (U)
is the sum of the individual fractions of CPU times used by each process.
CS420 Study Guide Chapter 3 Flashcards | Studygenie