0 votes
in Operating System by
What is Peterson’s approach?

1 Answer

0 votes
by

It is a concurrent programming algorithm. It is used to synchronize two processes that maintain the mutual exclusion for the shared resource. It uses two variables, a bool array flag of size 2 and an int variable turn to accomplish it.

...