← Quiz: CPU Scheduling: all 10 questions
Quiz: CPU Scheduling · Question 7 of 10
With SRTF, P1 arrives at 0 with burst 6 and P2 arrives at 2 with burst 2. What is P1's waiting time?
With SRTF, P1 arrives at 0 with burst 6 and P2 arrives at 2 with burst 2. What is P1's waiting time?
- A.0
- B.2
- C.4
- D.6
Answer & explanation
Correct answer: 2
P1 runs 0–2, P2 preempts and runs 2–4, P1 finishes 4–8. WT = 8 − 0 − 6 = 2.
Can you get the rest right without peeking?
Take the timed Quiz: CPU Scheduling quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →