Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
121 views
in Computer by (102k points)
closed by

Choose two 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.


1. I and II
2. II and III
3. I and III
4. I, II and III

1 Answer

0 votes
by (101k points)
selected by
 
Best answer
Correct Answer - Option 1 : I and II

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

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 1 is correct

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...