Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: Deadlock- 2 - Computer Science Engineering (CSE) MCQ

Test: Deadlock- 2 - Computer Science Engineering (CSE) MCQ


Test Description

9 Questions MCQ Test - Test: Deadlock- 2

Test: Deadlock- 2 for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: Deadlock- 2 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Deadlock- 2 MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Deadlock- 2 below.
Solutions of Test: Deadlock- 2 questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: Deadlock- 2 solutions in Hindi for Computer Science Engineering (CSE) course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Deadlock- 2 | 9 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Deadlock- 2 - Question 1

Dijkstra’s banking algorithm in an operating system performs

Detailed Solution for Test: Deadlock- 2 - 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 for Test: Deadlock- 2 - 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]

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Deadlock- 2 - Question 3

Which of the following statements is not true?

Detailed Solution for Test: Deadlock- 2 - Question 3

Deadlock can’t take place if resources must be requested in same order by process. For deadlock, circular wait is a must condition.

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 for Test: Deadlock- 2 - 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 for Test: Deadlock- 2 - 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 for Test: Deadlock- 2 - 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 for Test: Deadlock- 2 - 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 for Test: Deadlock- 2 - 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 for Test: Deadlock- 2 - 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.

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

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)