aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Computer Science (GATE Exam) 2010 - Previous Question Paper Solution
  • A system has $n$ resources $R_0, \dots,R_{n-1}$, and $k$ ...
Multiple choice

A system has $n$ resources $R_0, \dots,R_{n-1}$, and $k$ processes $P_0, \dots, P_{k-1}$. The implementation of the resource request logic of each process $P_i$ is as follows:

if (i%2==0) { 
    if (i

  1. n = 40, k = 26

  2. n = 21, k = 12

  3. n = 20, k = 10

  4. n = 41, k = 19

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Keep practicing — related questions

  • Suppose $n$ processes, $P_1, \dots P_n$ share $m$ identical resource units, which can be reserved and relea...
  • Suppose $n$ processes, $P_1, \dots P_n$ share $m$ identical resource units, which can be reserved and relea...
  • Consider the following snapshot of a system running n processes. Process i is holding xi instances of a res...
  • Consider the following snapshot of a system running n processes. Process i is holding xi instances of a res...
  • Consider a system with 4 types of resources R1 (3 units), R2 (2 units), R3 (3 units), R4 (2 units). A non-p...
  • A system has 4 processes sharing 5 resources. If each process needs a maximum of 3 units, then
  • Which of the following is the condition for deadlock in which processes holding resources can request new r...
  • A single processor system has three resource types X, Y and Z, which are shared by three processes. There a...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy