✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Assume that there are two processes (i.e., P1 and P2) using Peterson’s Solution for the Process Synchronization, where Process P1 uses Flag_1 and Process P2 uses Flag_2. Moreover, they are also sharing a Turn data item. Process P2 is not ready to enter the critical section; however, Process P1 wants to enter the critical section. What will the values of Flags and Turn data items be?