316 views

3 Answers

2 2 votes

If the lock variable is initialized to False, then mutual exclusion is satisfied because only one process can enter the critical section at a time, but progress is not satisfied because a process may keep waiting even when the other process is not interested, and bounded waiting is also not satisfied.

This is an example of strict alternation.

Answer: A

1 flag:
✌ Low quality (Mayank_Pant “C is also the ans”)
0 0 votes

Mutual exclusion is satisfied there is no dout becuase atmost one process at a time in a critical section
Mutual Exclusion => Atmost 1 process in critical section at any time. 
Progress is  not satisfied because one process is in critical section another process try it wait until Lock becomes true but it blocked in while loop .

Progress => If a process is in critical section. another process try to enter critical section it can wait but once it come out from critical section another process couldn't blocked unnessarly it is then it is no progress here else progress satisfied.

Bounded waiting is satisfied Because it is not waiting independently.

Bounded waiting (No process waits indefinetly)

I hope u like it .

here A,B,C

• edited by
1 flag:
✌ Low quality (Mayank_Pant “A and C would be the answers”)
Position:
Show:

Related questions

3 3 votes
1 1 answer
238
238 views
GO Classes asked Jul 25
238 views
Which of the following statements are correct?Mutual exclusion ensures that if one process is executing in its critical section, no other process can execute in its criti...
0 0 votes
1 1 answer
575
575 views
0 0 votes
0 0 answers
439
439 views
air1air2 asked Nov 29, 2024
439 views
Does this satisfy bounded waiting .The answer is given it does not satisfies bounded waiting but if P0 exits the critical section and p1 want to enter then the cs gets bl...
0 0 votes
1 1 answer
847
847 views
N3314nch41 asked Sep 10, 2023
847 views
How to approach synchronization (specifically semaphore) question, there size are really intimidating and i’m unable to decode the code written? What to do??