🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.0
  2. B.2
  3. C.4
  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 →