Computer Science · Operating Systems
In the context of process synchronization, arrange the operational steps of Peterson's Solution in the correct sequence for a process (Pi) attempting to access a shared resource: A. Setting its own flag variable to true to indicate intent to enter. B. Assigning the turn variable to the other process (j). C. Executing the critical section code to access shared data. D. Resetting its own flag variable to false upon exiting the section. E. Continuously evaluating the flag of the other process and the turn variable in a loop. Choose the correct answer from the options given below:
- 1A, B, E, C, D✓
- 2B, A, E, C, D
- 3A, E, B, D, C
- 4E, A, B, C, D
Correct answer
A, B, E, C, D
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Operating Systems?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Operating Systems