Question
Option 4 : In Q0, because it never exhausts its quantum / Q0 में, क्योंकि यह कभी अपना क्वांटम समाप्त नहीं करती
Detailed Solution
सही उत्तर In Q0, because it never exhausts its quantum / Q0 में, क्योंकि यह कभी अपना क्वांटम समाप्त नहीं करती है।
Question:
A three-level multilevel feedback queue has Q0 (Round Robin, quantum 8, highest priority), Q1 (Round Robin, quantum 16) and Q2 (FCFS, lowest). New processes enter Q0 and CPU-bound processes that exhaust their quantum are demoted. A text-editor process repeatedly uses 2-3 ms of CPU and then waits for keyboard I/O. Where will it spend most of its CPU time? / त्रि-स्तरीय मल्टीलेवल फीडबैक क्यू में Q0 (क्वांटम 8, उच्चतम), Q1 (क्वांटम 16), Q2 (FCFS, निम्नतम) हैं। एक टेक्स्ट-एडिटर प्रोसेस बार-बार 2-3 मि.से. CPU लेकर कीबोर्ड I/O की प्रतीक्षा करती है। वह अपना अधिकांश CPU समय कहाँ बिताएगी?
Correct Answer: In Q0, because it never exhausts its quantum / Q0 में, क्योंकि यह कभी अपना क्वांटम समाप्त नहीं करती
The editor's bursts (2-3 ms) are shorter than Q0's quantum (8 ms), so it voluntarily yields for I/O before demotion can occur and re-enters Q0 on wakeup. Interactive I/O-bound jobs therefore stay in the top queue, which is exactly the behaviour MLFQ is designed to reward. / एडिटर के बर्स्ट (2-3 मि.से.) Q0 के क्वांटम (8 मि.से.) से छोटे हैं, अतः वह निम्नस्तरित हुए बिना Q0 में बनी रहती है।