Question:
Which of the following statements is true?
निम्न में से कौन-सा कथन सत्य है?
Options:
- A process is thrashing if it spends excessive time executing instead of paging.
- A process is thrashing if it spends more time paging than executing.
- A process is thrashing if no memory has been allocated to it.
- None of these
- एक प्रोोसेस थ्रेेशिंंग होता है अगर यह पेजिंंग के बजाय, निष्पादित करने में अत्यधिक समय खर्च करता है।
- एक क्रिया थ्रेेशिंंग है यदि निष्पादित करने के बजाय, यह बहुत अधिक समय पेजिंंग करने में खर्च करता है।
- अगर कोई मेमोरी इसके लिए आवंटित नहींं हुई है तो एक प्रोोसेस थ्रेेशिंंग है।
- इनमे से कोई नहींं
Correct Answer: b)
Explanation:
Detailed Explanation:
The correct answer is b) A process is thrashing if it spends excessive time paging instead of executing. (एक क्रिया थ्रैशिंग है यदि निष्पादित करने के बजाय, यह बहुत अधिक समय पेजिंग करने में खर्च करता है।).
Thrashing in Operating Systems:
- In virtual memory management, Thrashing occurs when the system does not allocate sufficient physical frames to accommodate the active working set of running processes.
- Consequently, every accessed page triggers a page fault. The operating system must constantly swap pages out to disk and read new pages in (paging/swapping I/O).
- The process spends virtually all of its time waiting for the page-swapping disk subsystem, and CPU utilization plummets toward zero.
- Because CPU utilization drops, the OS scheduler may attempt to increase the degree of multiprogramming by bringing in even more processes, accelerating the collapse into severe thrashing.
विस्तृत व्याख्या:
सही उत्तर b) एक क्रिया थ्रैशिंग है यदि निष्पादित करने के बजाय, यह बहुत अधिक समय पेजिंग करने में खर्च करता है। है।
थ्रैशिंग (Thrashing) की संकल्पना:
- वर्चुअल मेमोरी सिस्टम में, थ्रैशिंग वह स्थिति है जब किसी प्रोसेस को उसके ‘वर्किंग सेट’ के बराबर पर्याप्त पेज फ्रेम नहीं मिलते हैं।
- इसके परिणामस्वरूप लगातार पेज फॉल्ट (page fault) होते रहते हैं और सिस्टम का अधिकांश समय पेजों को रैम से डिस्क और डिस्क से रैम में स्वैप (पेजिंग) करने में ही व्यतीत हो जाता है, जबकि वास्तविक प्रोग्राम निष्पादन (execution) न के बराबर होता है।
- इससे सीपीयू का उपयोग (utilization) बेहद कम हो जाता है और पूरी प्रणाली अत्यंत धीमी हो जाती है।