• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Deadlock

Question 41

An operating system contains 3 user processes each requiring 2 units of resource R. The minimum number of units of R such that no deadlocks will ever arise is
  • 3
  • 5
  • 4
  • 6

Question 42

Two shared resources R1 and R2 are used by processes P1 and P2. Each process has a certain priority for accessing each resource. Let Tij denote the priority of Pi for accessing  Rj. A process Pi can snatch a resource Rh from process Pj if Tik is greater than Tjk. Given the following :
  1. T11 > T21
  2. T12 > T22
  3. T11 < T21
  4. T12 < T22
Which of the following conditions ensures that P1 and P2 can never deadlock?  
  • (I) and (IV)
  • (II) and (III)
  • (I) and (II)
  • None of the above

There are 42 questions to complete.

Last Updated :
Take a part in the ongoing discussion