Question : Which condition is NOT guaranteed in the TSL mechanism?
Solution :
Correct Answer : Bounded waiting
Description -
Question : Which property is guaranteed by the TSL mechanism?
Solution :
Correct Answer : Mutual exclusion
Description -
Question : The TSL instruction performs which operations simultaneously?
Solution :
Correct Answer : Load lock value and set it to 1
Description -
Question : In the TSL mechanism, the lock variable usually has which values?
Solution :
Correct Answer : 0 and 1
Description -
Question : The TSL mechanism in an operating system is mainly used for:
Solution :
Correct Answer : Process synchronization
Description -
Question : Why is the lock variable mechanism considered imperfect?
Solution :
Correct Answer : It may fail to guarantee mutual exclusion
Description -
Question : What happens when a process exits the critical section?
Solution :
Correct Answer : Lock is set to 0
Description -
Question : Which type of waiting is used in the lock variable mechanism?
Solution :
Correct Answer : Busy waiting
Description -
Question : . The lock variable mechanism is mainly used for:
Solution :
Correct Answer : Process synchronization
Description -
Question : In the lock variable mechanism, what does the value 0 indicate?
Solution :
Correct Answer : Critical section is vacant
Description -
Question : Which condition ensures that if no process is executing in the critical section, another process can enter it?
Solution :
Correct Answer : Progress
Description -
Question : The critical section problem mainly occurs due to:
Solution :
Correct Answer : Multiple processes accessing shared resources simultaneously
Description -
Question : Which requirement ensures that processes will not wait indefinitely to enter the critical section?
Solution :
Correct Answer : Bounded waiting
Description -
Question : Which condition ensures that only one process executes in the critical section at a time?
Solution :
Correct Answer : Mutual Exclusion
Description -
Question : What is a critical section in an operating system?
Solution :
Correct Answer : A part of a program that accesses shared resources
Description -
Question : Which condition ensures that only one process executes in the critical section at a time?
Solution :
Correct Answer : Mutual exclusion
Description -
Question : A section of code where shared resources are accessed is called:
Solution :
Correct Answer : Critical section
Description -
Question : Which problem occurs when multiple processes access shared data simultaneously and produce inconsistent results?
Solution :
Correct Answer : Race condition
Description -
Question : A process that can affect or be affected by another process is called:
Solution :
Correct Answer : Cooperative process
Description -
Question : What is Process Synchronization in an Operating System?
Solution :
Correct Answer : Coordination of processes to access shared resources safely
Description -