Question

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

Option 2 : 4.33 time units / 4.33 समय इकाई

Advertisement

Detailed Solution

सही उत्तर 4.33 time units / 4.33 समय इकाई है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Three processes P1, P2, P3 all arrive at time 0 with CPU bursts 5, 3 and 1 respectively. Using Round Robin scheduling with time quantum 2, the average waiting time is ___ / तीन प्रोसेस P1, P2, P3 सभी समय 0 पर क्रमशः 5, 3 और 1 CPU बर्स्ट के साथ आते हैं। टाइम क्वांटम 2 के साथ Round Robin शेड्यूलिंग से औसत प्रतीक्षा समय ___ है

1.
3.33 time units / 3.33 समय इकाई
2.
4.33 time units / 4.33 समय इकाई
3.
5.67 time units / 5.67 समय इकाई
4.
7.33 time units / 7.33 समय इकाई

Correct Answer: 4.33 time units / 4.33 समय इकाई

Gantt chart: P1(0-2), P2(2-4), P3(4-5, finishes), P1(5-7), P2(7-8, finishes), P1(8-9, finishes). Completion times: P1=9, P2=8, P3=5. Waiting time = completion - arrival - burst: P1=9-0-5=4, P2=8-0-3=5, P3=5-0-1=4. Average = 13/3 = 4.33. Option (d) 7.33 is the average turnaround time, a common trap. / गैंट चार्ट: P1(0-2), P2(2-4), P3(4-5, समाप्त), P1(5-7), P2(7-8, समाप्त), P1(8-9, समाप्त)। समापन समय: P1=9, P2=8, P3=5। प्रतीक्षा समय = समापन - आगमन - बर्स्ट: P1=9-0-5=4, P2=8-0-3=5, P3=5-0-1=4। औसत = 13/3 = 4.33। विकल्प (d) 7.33 औसत टर्नअराउंड समय है, जो एक सामान्य जाल है।

Downloaded from PrepSnap (prepsnap.in)