549 views
0 votes
0 votes

What is the issue with the following version of Dekker’s Algorithm:

CSEnter(int i)

{

inside[i] = true;

While(inside[j])

{

inside[i] = false;

while (turn == j) continue;

inside[i] = true;

}

}

CSExit(int k)

{

turn = j;

inside[i]= false;

}

 

  1. Deadlock is guaranteed

       b.Possibility of starvation

       c.Starvation never happen

       d.None of the above

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3
TusharKumar asked Dec 24, 2022
313 views
How many integers are there in the set {1,2,3,…..,1000} with no digit being repeated?
1 votes
1 votes
0 answers
4
TusharKumar asked Dec 23, 2022
614 views
The correct answer given is 3.