Operating System - Deadlocks


The methods for dealing with the deadlock problem is


Use a protocol to make sure that the system never enters in to the deadlock state.


Allow the system to enter a deadlock state and then recover.


Ignore the problem, and pretend that deadlocks never occur in the system. The UNIX operating system uses this solution.


all of these


Option: D

Explanation :

Methods for Handling Deadlocks

  • Deadlock Detection.
    • Always grant resource request when possible. Periodically check for deadlocks. If a deadlock exists, recover from it.

  • Deadlock Prevention

    • Disallow one of the four necessary conditions for deadlock.

  • Deadlock Avoidance.

    • Do not grant a resource request if this allocation have the potential to lead to a deadlock.

  • Ignore the problem

    • Makes sense if the likelihood is very low.

Click on Discuss to view users comments.

Write your comments here:


A system has 3 processes sharing 4 resources. If each process needs a maximum of 2 units, then


deadlock can never occur


deadlock may occur


deadlock has to occur


none of these


Option: A

Explanation :

Atleast one process will be holding 2 resources in case of a simultaneous demand from all the processes. That process will release the 2 resources, thereby avoiding any possible deadlock.

Click on Discuss to view users comments.

Write your comments here:

Related MCQ

Syllabus covered in this section is-

  • Main functions of operating systems
  • Multiprogramming, multiprocessing and multitasking
  • Memory Management- Virtual memory, paging, fragmentation
  • Concurrent Processing: Mutual exclusion, Critical regions, locks and unlock.
  • Scheduling: CPU scheduling. I/O scheduling, Resource scheduling
  • Deadlock and scheduling algorithms.
  • Banker's algorithm for deadlock handling.

This Section covers Operating System Questions Answers .These questions can be used for the preparation of various competitive and academic exams like

  • UGC NET Computer Science
  • Pre PhD Entrance Exam
  • DOEACC Exams
  • Kendriya Vidyalaya Sangathan Entrance Exam
  • Undergraduate Computer Science Examinations
  • GATE Computer Science
  • Post Graduate Computer Science Test
  •  PhD Entrance Exam
  • Computer Engineering
  • State Eligibility Test (SET)
  • National Eligibility Test (NET)

Who can benefit

  • Operating System Objective Questions Answers can be used by any student who is preparing for PhD entrance exam, pre PhD entrance exam, entrance exam or any other such exam.
  • Any student who is preparing for DOEACC exams can also use Operating System questions answers for preparation of his exams.
  • Operating System mcq can be useful for the students who are pursuing any undergraduate or post graduate degree in computer science like BE, ME , Btech, Mtech, .BSc, MSc, BCA, MCA, BS, MS  or any other such degree
  • Operating System mcq with answers and explanation can also be useful for the students who are preparing for any competitive exam or recruitment exams like GATE Computer Science, UGC NET Computer Science, Kendriya Vidyalaya Sangathan PGT exam, PSU, IES or any other such exam.
  • Operating System multiple choice questions answers  can also be used by any candidate who wants to gain credits in Operating System in BS Computer science or MS Computer science,
  • You can download Operating System mcq pdf from this site.
  • You can get access to Operating System multiple choice questions answers EBook.

Various search terms used for This section are

  • Operating System Quiz Questions With Answers

  • Operating System Exam Questions Answers

  • Operating System Mcq Questions Answers

  • Operating System Mcq Pdf Download