Multiple Choice
Which of the following indicates that Pi can enter the critical section in Peterson's solution?
A) flag[j] == false or turn == i
B) flag[j] == true or turn == i
C) flag[j] == false or turn == j
D) flag[j] == true and turn == j
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Which of the following is true regarding
Q2: What is the difference between counting semaphore
Q3: Which of the following critical-section problem's requirements
Q5: Spinlocks are not appropriate for single-processor systems.
Q6: Which of the following variables are shared
Q7: Which of the following is a software-based
Q8: A semaphore has an integer value.
Q9: Which of the following critical-section problem's requirements
Q10: Which of the following is NOT true
Q11: Which of the following critical-section problem's requirements