Describe solution for critical section problem.
Answers
Answered by
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
Chemistry,
7 months ago
Chemistry,
7 months ago
Psychology,
1 year ago
India Languages,
1 year ago
Math,
1 year ago