0
0
Operating Systemsknowledge~5 mins

Priority scheduling in Operating Systems - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Priority Scheduling in operating systems?
Priority Scheduling is a method where each process is assigned a priority. The CPU is allocated to the process with the highest priority first.
Click to reveal answer
beginner
How does Priority Scheduling decide which process runs next?
It selects the process with the highest priority to run next. If two processes have the same priority, other criteria like arrival time may be used.
Click to reveal answer
intermediate
What is the difference between preemptive and non-preemptive Priority Scheduling?
In preemptive Priority Scheduling, a running process can be stopped if a higher priority process arrives. In non-preemptive, the running process continues until it finishes or blocks.
Click to reveal answer
intermediate
What problem can occur in Priority Scheduling and how is it solved?
The problem is starvation, where low priority processes may never get CPU time. It can be solved by aging, which gradually increases the priority of waiting processes.
Click to reveal answer
beginner
Give a real-life example that explains Priority Scheduling.
Imagine a hospital emergency room where patients with more serious conditions (higher priority) are treated before those with minor injuries, regardless of arrival time.
Click to reveal answer
In Priority Scheduling, which process is selected to run first?
AThe process that arrived first
BThe process with the shortest burst time
CThe process with the highest priority
DThe process with the lowest priority
What happens in preemptive Priority Scheduling when a higher priority process arrives?
AThe current process is stopped and the higher priority process runs
BThe system crashes
CThe new process waits in the queue
DThe current process continues until it finishes
What is starvation in Priority Scheduling?
AWhen low priority processes never get CPU time
BWhen high priority processes wait too long
CWhen all processes get equal CPU time
DWhen the CPU is idle
Which technique helps prevent starvation in Priority Scheduling?
AFirst Come First Serve
BRound Robin
CShortest Job First
DAging
In non-preemptive Priority Scheduling, when does the CPU switch to another process?
AImmediately when a higher priority process arrives
BOnly when the current process finishes or blocks
CAfter a fixed time slice
DNever
Explain how Priority Scheduling works and the difference between preemptive and non-preemptive types.
Think about how the CPU chooses which process to run and when it can switch.
You got /4 concepts.
    Describe the problem of starvation in Priority Scheduling and how aging helps solve it.
    Consider what happens to processes with low priority if higher priority ones keep coming.
    You got /3 concepts.