solution - Operating System : Synchronization (Test 2)

Question : Peterson’s Solution belongs to which category?

Solution :
490220260313050640 Correct Answer : Software synchronization solution

Description -

Operating System : Synchronization (Test 2)

Question : Peterson’s solution guarantees which property?

Solution :
292520260313050559 Correct Answer : All of the above

Description -

Operating System : Synchronization (Test 2)

Question : Peterson’s Solution uses which variables?

Solution :
26420260313050437 Correct Answer : flag[] and turn

Description -

Operating System : Synchronization (Test 2)

Question : Peterson’s algorithm works correctly for how many processes?

Solution :
45120260313050349 Correct Answer : 2

Description -

Operating System : Synchronization (Test 2)

Question : Peterson’s Solution is used to solve which problem in Operating Systems?

Solution :
523120260313050302 Correct Answer : Critical section problem

Description -

Operating System : Synchronization (Test 2)

Question : The Interested Variable mechanism is mainly used to solve:

Solution :
115920260313050156 Correct Answer : Critical section problem

Description -

Operating System : Synchronization (Test 2)

Question : When a process exits the critical section, it sets its interest variable to:

Solution :
460020260313050049 Correct Answer : False

Description -

Operating System : Synchronization (Test 2)

Question : If Int[j] = true, process Pi will:

Solution :
456820260313045925 Correct Answer : Wait in a loop

Description -

Operating System : Synchronization (Test 2)

Question : In the Interested Variable mechanism, the variable Int[i] indicates:

Solution :
508520260313045825 Correct Answer : Interest of process to enter critical section

Description -

Operating System : Synchronization (Test 2)

Question : The Interested Variable Mechanism uses which type of variable?

Solution :
825820260313045722 Correct Answer : Boolean variable

Description -

Operating System : Synchronization (Test 2)

Question : The waiting mechanism used in the turn variable approach is:

Solution :
145220260313045550 Correct Answer : Busy waiting

Description -

Operating System : Synchronization (Test 2)

Question : Which problem is NOT guaranteed to be satisfied by the strict alternation approach?

Solution :
581820260313045512 Correct Answer : Progress

Description -

Operating System : Synchronization (Test 2)

Question : In the strict alternation approach, a process can enter the critical section when:

Solution :
397820260313045354 Correct Answer : turn variable equals its process ID

Description -

Operating System : Synchronization (Test 2)

Question : The Turn Variable or Strict Alternation approach works for how many processes?

Solution :
803320260313045307 Correct Answer : Two processes

Description -

Operating System : Synchronization (Test 2)

Question : The Turn Variable approach in Operating Systems is mainly used for:

Solution :
947220260313045227 Correct Answer : Process synchronization

Description -

Operating System : Synchronization (Test 2)

Question : Priority inversion mainly affects which type of systems?

Solution :
785220260313045116 Correct Answer : Real-time systems

Description -

Operating System : Synchronization (Test 2)

Question : What type of lock situation occurs when neither process can proceed in the TSL scenario?

Solution :
899620260313045009 Correct Answer : Spinlock

Description -

Operating System : Synchronization (Test 2)

Question : Why is process P2 unable to enter the critical section?

Solution :
456020260313044910 Correct Answer : Lock variable is already set by P1

Description -

Operating System : Synchronization (Test 2)

Question : In the TSL mechanism example, which process initially enters the critical section?

Solution :
508920260313044748 Correct Answer : P1

Description -

Operating System : Synchronization (Test 2)

Question : Priority inversion occurs when:

Solution :
430820260313044429 Correct Answer : Low-priority process blocks a high-priority process holding a resource

Description -

Operating System : Synchronization (Test 2)