Question 31Asked in Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)

Which of the following is a solution to the deadlock problem that involves ensuring that processes hold all required resources before starting execution?निम्नलिखित में से कौन सा गतिरोध समस्या का एक समाधान है जिसमें यह सुनिश्चित करना शामिल है कि निष्पादन शुरू करने से पहले सभी आवश्यक संसाधन हैं?

निम्नलिखित में से कौन सा गतिरोध समस्या का एक समाधान है जिसमें यह सुनिश्चित करना शामिल है कि निष्पादन शुरू करने से पहले सभी आवश्यक संसाधन हैं?
  1. AAvoidanceपरिहार
  2. BDetectionका पता लगाना
  3. CPreventionरोकथाम
  4. DTerminationसमाप्ति
Show answerHide answer

Correct answer: (C) Preventionरोकथाम

Explanation

Requiring a process to request and hold all its resources before it starts breaks the hold-and-wait condition. That is a deadlock prevention technique, not avoidance (as in the Banker's algorithm) or detection.किसी प्रक्रिया से शुरू होने से पहले अपने सभी संसाधन माँगने और रखने की अपेक्षा करना hold-and-wait शर्त को तोड़ता है। यह deadlock prevention तकनीक है, avoidance (जैसे Banker's algorithm में) या detection नहीं।

From Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM)

This is question 31 of Bihar STET 2024 Paper II Computer Science PYQ, 12 Jun 2024, Shift 1 (10:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.