386 views
0 votes
0 votes

“Consider the following proposed solution to dining philosophers problem to avoid deadlock.

Consider the binary semaphore lock is initialized to 1.

Which of the following is correct?”

In the above question, is the given solution deadlock free? Will removing (iii) and (iv) can make the solution deadlock free?

Please log in or register to answer this question.

Related questions

544
views
1 answers
1 votes
586
views
0 answers
0 votes
Sunnidhya Roy asked Dec 27, 2022
586 views
Q: Consider a system having 22 resources of same type. These resources are shared by 4 processes P,Q,R and S having peak demands of 3, 6, a and b. How many ... a-1 or b-1 will become -1 which will impact the inequality. So is this valid?
615
views
1 answers
3 votes
viral8702 asked Oct 12, 2022
615 views
Consider a system using many-to-one pure user-level thread model in which Kernel is not aware of any user-level thread. Which of the following situations/states is/are ... .D)P is in ready state and a thread of P is in running state..
1.2k
views
1 answers
1 votes
DebRC asked Sep 12, 2022
1,153 views
Consider the following segment:Note : Assume the count = count + 1; will execute in 3' different instructions.Where, m[count] refers to memory value of count variable.Preemption ... = 15c) Min = 1, Maximum = 15d) Min = 15, Maximum = 15