Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 3 : P3 at time 4 / समय 4 पर P3

Advertisement

Detailed Solution

सही उत्तर P3 at time 4 / समय 4 पर P3 है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Three processes P1 (arrival 0, burst 8), P2 (arrival 1, burst 4), P3 (arrival 2, burst 2) run under preemptive Shortest Remaining Time First scheduling. Which process completes first, and at what time? / तीन प्रोसेस P1 (0,8), P2 (1,4), P3 (2,2) प्रीएम्प्टिव SRTF शेड्यूलिंग में चलती हैं। कौन-सी प्रोसेस सबसे पहले पूर्ण होगी और किस समय?

1.
P1 at time 8 / समय 8 पर P1
2.
P2 at time 7 / समय 7 पर P2
3.
P3 at time 4 / समय 4 पर P3
4.
P3 at time 10 / समय 10 पर P3

Correct Answer: P3 at time 4 / समय 4 पर P3

Timeline: 0-1 P1 runs; at 1, P2 (remaining 4) is shorter than P1 (remaining 7), so P2 preempts and runs 1-2; at 2, P3 (remaining 2) is shorter than P2 (remaining 3), so P3 preempts and runs 2-4, completing at time 4. Then P2 runs 4-7 and P1 runs 7-14. So P3 finishes first at time 4. Option (d) is the non-preemptive SJF completion time of P3. / समय-रेखा: P1 (0-1), P2 द्वारा प्रीएम्प्ट (1-2), P3 द्वारा प्रीएम्प्ट (2-4) और समय 4 पर पूर्ण। अतः P3 सबसे पहले पूर्ण होती है।

Downloaded from PrepSnap (prepsnap.in)