GATE Computer Science Engineering(CSE) 2027 Test: Deadlock- 2 Free Online


MCQ Practice Test & Solutions: Test: Deadlock- 2 (9 Questions)

You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: Deadlock- 2". These 9 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 30 minutes
  • - Number of Questions: 9

Sign up on EduRev for free to attempt this test and track your preparation progress.

Test: Deadlock- 2 - Question 1

Dijkstra’s banking algorithm in an operating system performs

Detailed Solution: Question 1

Banker’s algorithm resources will only be allocated if system will remain in SAFE state (DEADLOCK can’t occur if system is in SAFE state), so performing DEADLOCK AVOIDANCE.

Test: Deadlock- 2 - Question 2

Necessary conditions for deadlock are

Detailed Solution: Question 2

For deadlock four necessary condition are to be met
(i) Mutual exclusion
(ii) Non-preemption
(iii) Circular wait
(iv) Partial allocation [Bounded waiting]

Test: Deadlock- 2 - Question 3

Which of the following statements is not true?

Test: Deadlock- 2 - Question 4

Suppose we have a system in which processes is in hold and wait condition then which of the following approach prevent the deadlock.

Detailed Solution: Question 4

To ensure that deadlock will not occur in a system in which processes are in HOLD and WAIT condition, a process requires to request all resources before it begins execution, or allow process to request resources only when the process has no other resources already allocated.

Test: Deadlock- 2 - Question 5

What is a reusable resource? 

Detailed Solution: Question 5

Reusable resource: A resource, such as a CPU or tape transport, that is not rendered useless by being used. A magnetic disk or tape can be used often indefinitely and are to be regarded as reusable resources. Compare consumable resources.

Test: Deadlock- 2 - Question 6

An operating system makes use of Banker’s algorithm to allocate 12 printers. Printers will be allocated to a process requesting them only if  there are enough available printers to allow it to run to completion.
User 1 using 7 printers and will need at most a total of 10 printers.
User 2 is using 1 printer and will need at most 4 printers.
User 3 is using 2 printers and will need at most 4 printers.
Each user is currently requesting 1 more printer, Which of the following is true?

Detailed Solution: Question 6

Total printers = 12
Printers allocated to user 1, user 2 and user 3 are 7, 1 and 2 respectively

So, only safest sequence is V3 first then either or V3. So, operating system will grant printer to user 3 only.

Test: Deadlock- 2 - Question 7

A state is safe if the system can allocate resources to each process (up to its maximum) in some order and still avoid deadlock, which of the following is/are true
1. Deadlocked state is unsafe,
2. Unsafe state may lead to a deadlock situation.
3. Unsafe state must lead to a deadlock situation.
4. Deadlock state is a subset of unsafe state,

Detailed Solution: Question 7


(i) Deadlock is unsafe state
(ii) The unsafe state may lead to deadlock.
(iii) Clearly deadlock state is subset of unsafe state.
Its not compulsory that unsafe state always result in deadlock

Test: Deadlock- 2 - Question 8

Which of the following is NOT true of deadlock prevention and deadlock avoidance schemes?

Detailed Solution: Question 8

Deadlock prevention scheme handles the dead lock by confirms that either of the four necessary condition for deadlock doesn’t occur. Hence a resource request may not be granted even if the resulting state is safe.

Test: Deadlock- 2 - Question 9

An operating system implements a policy that requires a process to release all resources before making a request for another resource.

Detailed Solution: Question 9

Starvation can occur as each time a process requests a resource it has to release all its resources. Now, maybe the process has not used the resources properly yet. This will happen again when the process requests another resource. So, the process starves for proper utilisation of resources.

Deadlock will not occur as it is similar to a deadlock prevention scheme.

58 docs|215 tests
Information about Test: Deadlock- 2 Page
In this test you can find the Exam questions for Test: Deadlock- 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Deadlock- 2, EduRev gives you an ample number of Online tests for practice
Download as PDF