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?
✗ Incorrect
Priority Scheduling always selects the process with the highest priority to run first.
What happens in preemptive Priority Scheduling when a higher priority process arrives?
✗ Incorrect
In preemptive Priority Scheduling, the CPU switches to the higher priority process immediately.
What is starvation in Priority Scheduling?
✗ Incorrect
Starvation happens when low priority processes keep waiting because higher priority processes keep arriving.
Which technique helps prevent starvation in Priority Scheduling?
✗ Incorrect
Aging gradually increases the priority of waiting processes to prevent starvation.
In non-preemptive Priority Scheduling, when does the CPU switch to another process?
✗ Incorrect
In non-preemptive scheduling, the current process runs until it finishes or waits for I/O.
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.