751 views
1 votes
1 votes

Will there be Mutual Exclusion & Deadlock ?

1 Answer

0 votes
0 votes
Mutual Exclusion is satisfied.

Deadlock is not possible as value of turn can be either i or j but not both.

Related questions

0 votes
0 votes
2 answers
2
shivajikobardan asked Jul 22, 2023
726 views
Sorry if this is a stupid question. But it really intrigued me. Same resources at different algorithms are telling different ways to test these stuffs.Here's an algorith...
0 votes
0 votes
0 answers
4
Raj Singh 1 asked Jan 1, 2019
1,383 views
Many problems on gateoverflow asks whether the given code satisfies progress requirement of the solution for the critical section problem. Most of these code contain mult...