Menu

Process Synchronization Questions

MCQ
41.
In the bounded buffer problem ____________
forum Discussion
MCQ
42.
The dining-philosophers problem will occur in case of ____________
forum Discussion
MCQ
43.
The dining-philosophers problem will occur in case of ____________
forum Discussion
MCQ
44.
A deadlock free solution to the dining philosophers problem ____________
forum Discussion
MCQ
45.
All processes share a semaphore variable mutex, initialized to 1. Each process must execute wait(mutex) before entering the critical section and signal(mutex) afterward.
Suppose a process executes in the following manner.

signal(mutex);
.....
critical section
.....
wait(mutex);
In this situation :
forum Discussion
MCQ
46.
Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1 and S2 are randomly assigned.
Method used by P1 :
while(S1==S2);
Critical section
S1 = S2;
 
Method used by P2 :
while(S1!=S2);
Critical section
S2 = not(S1);
Which of the following statements describes properties achieved?
forum Discussion
MCQ
47.
A monitor is a type of ____________
forum Discussion
MCQ
48.
A monitor is characterized by ____________
forum Discussion
MCQ
49.
A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.
forum Discussion
MCQ
50.
The monitor construct ensures that ____________
forum Discussion