Computer Science, asked by piyuroxx854, 1 year ago

Describe solution for critical section problem.

Answers

Answered by prachiss
0

Peterson’s Solution is a classical software based solution to the critical section problem.

In Peterson’s solution, we have two shared variables:

boolean flag[i] :Initialized to FALSE, initially no one is interested in entering the critical section

int turn : The process whose turn is to enter the critical section

Similar questions