Resource Allocation 2009-2021 | L 21 | Operating System GATE PYQs | GATE 2022 | Vishvadeep Gothi

  Рет қаралды 8,030

Unacademy Computer Science

Unacademy Computer Science

Күн бұрын

Пікірлер: 5
@AashishVishwakarma14
@AashishVishwakarma14 Жыл бұрын
From the resource allocation logic, it's clear that even numbered processes are taking even numbered resources and all even numbered processes share no more than 1 resource. Now, if we make sure that all odd numbered processes take odd numbered resources without a cycle, then deadlock cannot occur. The "else" case of the resource allocation logic, is trying to do that. But, if n is odd, Rn-i and Rn-i-2 will be even and there is possibility of deadlock, when two processes requests the same R., and Rj. So, only B and D are the possible answers. Now, in D, we can see that Po requests Ro and R2, P2 requests R2 and R4, so on until, P18 requests R18 and R.20. At the same time P₁ requests R40 and R38, P3 requests R.38 and R36, so on until, P17 requests R24 and R.22. 1.e.; there are no two processes requesting the same two resources and hence there can't be a cycle of dependencies which means, no deadlock is possible. But for B, Ps requests Rg and R10 and P11 also requests R10 and Rs. Hence, a deadlock is possible. (Suppose Pg comes first and occupies Rg. Then P11 comes and occupies R10. Now, if Ps requests R10 and P11 requests Rg, there will be deadlock) Correct Answer: B
@alekhyobanerjee2099
@alekhyobanerjee2099 3 жыл бұрын
@7:45
@A_bhi17
@A_bhi17 11 ай бұрын
nice lecture!!
@samikshapathare4157
@samikshapathare4157 Жыл бұрын
bestt
@ruchikapharswan1357
@ruchikapharswan1357 16 күн бұрын
skip to 7.46 for question solving 🌈
Process Management & Memory Management | L 22 | Operating System GATE PYQs | GATE 2022
56:49
Process Synchronization GATE 2013-2021 | L 7 | Operating System GATE PYQs | GATE 2022
1:26:31
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
PYQ on Deadlock and Practice Questions  | Marathon Session | GATE 2021 CSE Exam
2:12:04
Unacademy Computer Science
Рет қаралды 3,7 М.
Process Synchronization GATE 2000-2010 | L 5 | Operating System GATE PYQs | GATE 2022
1:12:56
Lec20 Resource Allocation Graph in Deadlock | with example | Operating System
25:09
Disk Scheduling | L 48 | Operating System | GATE 2022 #VishvadeepGothi
51:25
Unacademy Computer Science
Рет қаралды 31 М.
C- Programming Practice Questions | GATE-24 | Vishvadeep Gothi
1:08:35
Unacademy Computer Science
Рет қаралды 17 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН