Open In App

ISRO | ISRO CS 2016 | Question 40

Like Article
Like
Save
Share
Report

With single resource, deadlock occurs
(A) if there are more than two processes competing for that resources
(B) if there are only two processes competing for that resources
(C) if there is a single process competing for that resources
(D) none of these


Answer: (D)

Explanation: There are 4 conditions required for a deadlock to occur:
1) Mutual Exclusion
2) No pre-emption
3) Hold and wait
4) Circular wait
When there is only one resource, the conditions of hold and wait and circular wait get eliminated. With the assumption that no process can use a resource for infinite amount of time, whenever a process will finish its execution , another process can get the resource. So a deadlock can’t occur.
So, option (D) is correct.

Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 26 Mar, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads