Question : Peterson’s Solution belongs to which category?
Solution :
Correct Answer : Software synchronization solution
Description -
Question : Peterson’s solution guarantees which property?
Solution :
Correct Answer : All of the above
Description -
Question : Peterson’s Solution uses which variables?
Solution :
Correct Answer : flag[] and turn
Description -
Question : Peterson’s algorithm works correctly for how many processes?
Solution :
Correct Answer : 2
Description -
Question : Peterson’s Solution is used to solve which problem in Operating Systems?
Solution :
Correct Answer : Critical section problem
Description -
Question : The Interested Variable mechanism is mainly used to solve:
Solution :
Correct Answer : Critical section problem
Description -
Question : When a process exits the critical section, it sets its interest variable to:
Solution :
Correct Answer : False
Description -
Question : If Int[j] = true, process Pi will:
Solution :
Correct Answer : Wait in a loop
Description -
Question : In the Interested Variable mechanism, the variable Int[i] indicates:
Solution :
Correct Answer : Interest of process to enter critical section
Description -
Question : The Interested Variable Mechanism uses which type of variable?
Solution :
Correct Answer : Boolean variable
Description -
Question : The waiting mechanism used in the turn variable approach is:
Solution :
Correct Answer : Busy waiting
Description -
Question : Which problem is NOT guaranteed to be satisfied by the strict alternation approach?
Solution :
Correct Answer : Progress
Description -
Question : In the strict alternation approach, a process can enter the critical section when:
Solution :
Correct Answer : turn variable equals its process ID
Description -
Question : The Turn Variable or Strict Alternation approach works for how many processes?
Solution :
Correct Answer : Two processes
Description -
Question : The Turn Variable approach in Operating Systems is mainly used for:
Solution :
Correct Answer : Process synchronization
Description -
Question : Priority inversion mainly affects which type of systems?
Solution :
Correct Answer : Real-time systems
Description -
Question : What type of lock situation occurs when neither process can proceed in the TSL scenario?
Solution :
Correct Answer : Spinlock
Description -
Question : Why is process P2 unable to enter the critical section?
Solution :
Correct Answer : Lock variable is already set by P1
Description -
Question : In the TSL mechanism example, which process initially enters the critical section?
Solution :
Correct Answer : P1
Description -
Question : Priority inversion occurs when:
Solution :
Correct Answer : Low-priority process blocks a high-priority process holding a resource
Description -