Question:
Those processes should be aborted on the occurrence of a deadlock, the termination of which involves:
उन प्रोोसेस को एक डेडलॉक की घटना पर निरस्त किया जाना चाहिए, जिसकी समाप्ति
Options:
- takes more time
- minimum cost
- no loss of security
- All options are correct
- में अधिक समय लगता है
- न्यूनतम लागत
- सुरक्षाा को कोई नुकसान नहींं है
- सभी विकल्प सही हैं
Correct Answer: b)
Explanation:
Detailed Explanation:
The correct answer is b) Minimum cost (न्यूनतम लागत).
When a deadlock occurs and cannot be resolved through resource preemption, the operating system must recover by aborting (terminating) one or more deadlocked processes to break the circular wait condition.
Victim Selection Policy:
- The operating system uses a minimum-cost approach to select which process to terminate. The goal is to abort the process (or set of processes) that incurs the minimum overall operational and computational penalty to the system.
- Cost Evaluation Factors include:
- Process priority.
- How long the process has computed and how much more time it requires before completion.
- How many and what types of resources the process has utilized.
- How many more resources the process needs to complete.
- How many processes will need to be terminated as a consequence.
- Whether the process is interactive or batch.
विस्तृत व्याख्या:
सही उत्तर b) न्यूनतम लागत (Minimum cost) है।
जब किसी ऑपरेटिंग सिस्टम में डेडलाक (Deadlock) की स्थिति उत्पन्न होती है, तो सिस्टम को सर्कुलर वेट (Circular Wait) चक्र को तोड़ने के लिए प्रक्रियाओं को समाप्त (abort/terminate) करना पड़ता है:
विक्टिम चयन नीति (Victim Selection):
- ऑपरेटिंग सिस्टम उस प्रोसेस को निरस्त करने के लिए चुनता है जिसकी समाप्ति से सिस्टम को न्यूनतम लागत (Minimum Cost) उठानी पड़े।
- लागत निर्धारण के मुख्य कारक:
- प्रोसेस की प्राथमिकता (Priority)।
- प्रोसेस अब तक कितना समय ले चुकी है और पूरा होने में कितना और समय लगेगा।
- प्रोसेस ने कौन-कौन से और कितने संसाधन होल्ड कर रखे हैं।
- क्या प्रोसेस इंटरैक्टिव है या बैच।
अतः डेडलॉक रिकवरी के दौरान हमेशा न्यूनतम लागत वाली प्रक्रिया को समाप्त किया जाता है ताकि सिस्टम के समग्र नुकसान को न्यूनतम रखा जा सके।