This commit is contained in:
John Gatward
2026-03-25 12:37:33 +00:00
parent 7e3dcd85ba
commit 1442cbb300

View File

@@ -6,7 +6,7 @@
Two **shared variables** are used Two **shared variables** are used
1. *turn* - indicates which process is next to enter its critical section 1. *turn* - indicates which process is next to enter its critical section.
2. *Boolean flag [2]* - indicates that a process is ready to enter its critical section 2. *Boolean flag [2]* - indicates that a process is ready to enter its critical section
* Peterson's solution can be used over multiple processes or threads * Peterson's solution can be used over multiple processes or threads