Choose statements in context of monitor based synchronization scheme that use condition type variable x:

I: Only wait () and signal () operations can be involved 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, the it has no effect.

This question was previously asked in
HTET PGT Official Computer Science Paper - 2019
View all HTET Papers >
  1. I and II
  2. II and III
  3. I and III
  4. I, II and III

Answer (Detailed Solution Below)

Option 4 : I, II and III
Free
HTET PGT Official Computer Science Paper - 2019
4.4 K Users
60 Questions 60 Marks 60 Mins

Detailed Solution

Download Solution PDF

The monitor is one of the ways to achieve Process synchronization. The monitor is supported by programming languages to achieve mutual exclusion between processes.

  • The operation x.wait(); means that the process invoking this operation is suspended until another process invokes x.signal();.
  • The x.signal operation resumes exactly one suspended process.  If no process is suspended, then the signal operation has no effect.
 

Wait operation

wait() : Process performing wait operation on any condition variable are suspended. The suspended processes are placed in block queue of that condition variable.

Signal operation

signal(): When a process performs signal operation on condition variable, one of the blocked processes is given chance.

Hence Option 4 is correct

Latest HTET Updates

Last updated on Jun 6, 2025

-> The HTET TGT Applciation Portal will reopen on 1st June 2025 and close on 5th June 2025.

-> HTET Exam Date is out. HTET TGT Exam will be conducted on 26th and 27th July 2025

-> Candidates with a bachelor's degree and B.Ed. or equivalent qualification can apply for this recruitment.

-> The validity duration of certificates pertaining to passing Haryana TET has been extended for a lifetime.

-> Enhance your exam preparation with the HTET Previous Year Papers.

More Concurrency and Synchronization Questions

Get Free Access Now
Hot Links: teen patti master update teen patti joy official teen patti apk download teen patti real cash 2024 teen patti gold online