Menu

Process Synchronization Questions

MCQ
21.
What are the two atomic operations permissible on semaphores?
forum Discussion
MCQ
22.
What are Spinlocks?
forum Discussion
MCQ
23.
What is the main disadvantage of spinlocks?
forum Discussion
MCQ
24.
The wait operation of the semaphore basically works on the basic _______ system call.
forum Discussion
MCQ
25.
The signal operation of the semaphore basically works on the basic _______ system call.
forum Discussion
MCQ
26.
If the semaphore value is negative ____________
forum Discussion
MCQ
27.
The code that changes the value of the semaphore is ____________
forum Discussion
MCQ
28.
Two processes, P1 and P2, need to access a critical section of code. Consider the following synchronization construct used by the processes.
Process P1 :
while(true)
{
w1 = true;
while(w2 == true);
Critical section
w1 = false;
}
Remainder Section
 
Process P2 :
while(true)
{
w2 = true;
while(w1 == true);
Critical section
w2 = false;
}
Remainder Section
Here, w1 and w2 have shared variables, which are initialized to false. Which one of the following statements is TRUE about the above construct?
forum Discussion
MCQ
29.
What will happen if a non-recursive mutex is locked more than once?
forum Discussion
MCQ
30.
What is a semaphore?
forum Discussion