Question OS-SYNC-0045
MediumWhich shared variables does Peterson's solution use?
- A.
A flag for each process and a turn variable
- B.
Two mutex locks
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Process Synchronization question
Which shared variables does Peterson's solution use?
A flag for each process and a turn variable
Two mutex locks
Sign up free to see the answer and a step-by-step explanation.
A counter and a queue
A single semaphore