Choose true statements in context of monitor based synchronization scheme that uses condition type -variable x: I: Only wait() and signal() operations can be invoked on x. II: If process P invokes x. wait() operation; then P is suspended until another process invokes x. signal(). III: The x. signal() operation resumes exactly one suspended process and if no process is suspended, then it has no effect.
The correct option is (4): The concept of the monitor, introduced by C.A.R. Hoare, is a high-level synchronization construct designed to simplify concurrent programming by encapsulating shared data and procedures that operate on that data. Central to the monitor scheme are condition variables, such as 'x', which processes use to wait for specific conditions to be met. Statement I is fundamentally true: a condition variable is a specialized synchronization aid…Read More
Source :
Source :
Source :
Source :