Question

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

Option 3 : 4.00 ms / 4.00 मिलीसेकंड

Advertisement

Detailed Solution

सही उत्तर 4.00 ms / 4.00 मिलीसेकंड है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Four processes arrive in a ready queue: P1 (arrival time 0, burst time 5), P2 (arrival time 7, burst time 3), P3 (arrival time 4, burst time 8) and P4 (arrival time 6, burst time 2). Using First-Come First-Served scheduling, what is the average waiting time in milliseconds? / रेडी क्यू में चार प्रोसेस आती हैं: P1 (आगमन समय 0, बर्स्ट समय 5), P2 (आगमन समय 7, बर्स्ट समय 3), P3 (आगमन समय 4, बर्स्ट समय 8) और P4 (आगमन समय 6, बर्स्ट समय 2)। फर्स्ट-कम फर्स्ट-सर्व्ड शेड्यूलिंग से औसत प्रतीक्षा समय (मिलीसेकंड में) क्या होगा?

1.
2.75 ms / 2.75 मिलीसेकंड
2.
5.00 ms / 5.00 मिलीसेकंड
3.
4.00 ms / 4.00 मिलीसेकंड
4.
6.25 ms / 6.25 मिलीसेकंड

Correct Answer: 4.00 ms / 4.00 मिलीसेकंड

FCFS serves in arrival order: P1 runs 0-5, then P3 (arrived at 4) runs 5-13, then P4 (arrived at 6) runs 13-15, then P2 (arrived at 7) runs 15-18. Waiting times are P1 = 0, P3 = 1, P4 = 7, P2 = 8. Average = (0+1+7+8)/4 = 4.00 ms. The trap is ordering P2 before P3 or forgetting that only arrived processes can run. / FCFS आगमन क्रम में सेवा देता है: P1 (0-5), फिर P3 (5-13), फिर P4 (13-15), फिर P2 (15-18)। प्रतीक्षा समय 0, 1, 7, 8 हैं; औसत = 16/4 = 4.00 मिलीसेकंड।

Downloaded from PrepSnap (prepsnap.in)