272 views

1 Answer

0 votes
0 votes
This will not occur, I think. As you are entering a critical section, the binary semaphore is already decremented to 0, so wait() cannot be called again on it. So, no deadlock.

Related questions

749
views
2 answers
2 votes
Sunnidhya Roy asked Dec 30, 2022
749 views
Can Safe state in DeadLock Avoidance Mechanism always guarantee No DeadLock??
325
views
1 answers
0 votes
atulcse asked Nov 4, 2021
325 views
Isn't it guaranteed that deadlock can be detected when there are multiple instances of resources? Sure, it cannot be detected only by looking for cycles in a ... aren't there algorithms that will always detect a deadlock, if it is there?
1.1k
views
1 answers
2 votes
aambazinga asked Dec 24, 2018
1,118 views
is there deadlock in the concurrent execution of two thread given below?void laurel() { lock_acquire(mutex); /* do something */ ... not getting any deadlock. please comment below if you find any.*Idon't have answer.
967
views
3 answers
0 votes
Vegeta asked Oct 22, 2018
967 views
All safe states are deadlock free. But we can go to deadlock with some combination of sequence? So if the question is, from the safe state can we enter deadlock? Ans should be YES.please give your thought