Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider a system having N resources of the s... Start Learning for Free
Consider a system having 'N' resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of 'N' to ensures the system is in deadlock?
  • a)
    23
  • b)
    20
  • c)
    21
  • d)
    22
Correct answer is option 'B,C,D'. Can you explain this answer?
Most Upvoted Answer
Consider a system having N resources of the same type. X,Y, and Z are ...
Given,
Number of processes = 3
The available instance of resources = N
Max needs of process (X,Y,Z) = (5,11,9)
Now,
Deadlock can occur: needed (requested) resource > available resources
Max resource per process to be in deadlock = needed −1
Nmax = (5 − 1) + (11− 1) + (9 − 1) = 4 + 10 + 8
= 22
∴ ≤ 22 will leads to deadlock.
∴ 20,21,22 will leads to deadlock.
Free Test
Community Answer
Consider a system having N resources of the same type. X,Y, and Z are ...
The value of N to ensure the system is in deadlock can be determined by analyzing the resource allocation and request patterns of the processes.

Resource Allocation:
- X has a peak demand of 5 resources.
- Y has a peak demand of 11 resources.
- Z has a peak demand of 9 resources.

Resource Request:
- Let's assume that at any given time, X has allocated a maximum of 3 resources, Y has allocated a maximum of 7 resources, and Z has allocated a maximum of 6 resources.

To create a deadlock situation, we need to ensure that the processes cannot obtain all the resources they need to complete their tasks. This can be achieved by considering the worst-case scenario, where each process requests the maximum number of resources it can hold.

In this scenario:
- X requests 5 resources (its peak demand).
- Y requests 11 resources (its peak demand).
- Z requests 9 resources (its peak demand).

To ensure that the system is in deadlock, we need to make sure that even if all processes request their maximum resources, there are not enough resources available in the system to fulfill their requests.

Now, let's consider different values of N and see if the system can be deadlocked:

- If N = 20:
- X can be allocated 3 resources.
- Y can be allocated 7 resources.
- Z can be allocated 6 resources.
- In this case, all processes can obtain the resources they need, so deadlock does not occur.

- If N = 21:
- X can be allocated 4 resources.
- Y can be allocated 7 resources.
- Z can be allocated 6 resources.
- Again, all processes can obtain the resources they need, so deadlock does not occur.

- If N = 22:
- X can be allocated 4 resources.
- Y can be allocated 8 resources.
- Z can be allocated 6 resources.
- All processes can still obtain the resources they need, so deadlock does not occur.

From the above analysis, we can see that even when N is increased to 22, deadlock does not occur. Therefore, the correct answers are options B, C, and D (20, 21, and 22). These values of N ensure that the system does not enter a deadlock state.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer?
Question Description
Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer?.
Solutions for Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer?, a detailed solution for Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? has been provided alongside types of Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a system having N resources of the same type. X,Y, and Z are the three processes that shared the resource. The peak demand of X,Y, and Z are 5,11 and 9 respectively. What is/are the value of N to ensures the system is in deadlock?a)23b)20c)21d)22Correct answer is option 'B,C,D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev