In a timeshare operating system, when the time slot assigned to a process is…
2024
In a timeshare operating system, when the time slot assigned to a process is completed, the process switches from the current state to?
- A.
Suspended state
- B.
Blocked state
- C.
Ready state
- D.
More than one of the above
- E.
None of the above
Attempted by 775 students.
Show answer & explanation
Correct answer: C
Explanation
In a timesharing operating system, the CPU scheduler allocates a fixed time interval, known as a time quantum or time slot, to each process. This mechanism ensures fair distribution of CPU time among multiple users.
When the assigned time slot for a process is completed, the process is preempted by the operating system. It does not terminate or wait for an event; instead, it is moved from the running state back to the ready state. In the ready state, the process waits in the ready queue for the next opportunity to be scheduled and executed.
हिन्दी व्याख्या
टाइम-शेयरिंग ऑपरेटिंग सिस्टम में, CPU शेड्यूलर प्रत्येक प्रोसेस को एक निश्चित समय अंतराल, जिसे समय क्वांटम या टाइम स्लॉट कहा जाता है, आवंटित करता है। यह तंत्र कई उपयोगकर्ताओं के बीच CPU समय का न्यायसंगत वितरण सुनिश्चित करता है।
जब किसी प्रोसेस को दिया गया टाइम स्लॉट पूरा हो जाता है, तो ऑपरेटिंग सिस्टम द्वारा उस प्रोसेस को प्री-एम्प्ट (preempt) कर दिया जाता है। यह समाप्त नहीं होता या किसी घटना का इंतजार नहीं करता; इसके बजाय, इसे रनिंग अवस्था से वापस रेडी अवस्था में स्थानांतरित कर दिया जाता है। रेडी अवस्था में, प्रोसेस अगली बार शेड्यूल होने और निष्पादित होने के लिए रेडी क्यू में प्रतीक्षा करता है।