1.
What will happen if a non-recursive mutex is locked more than once?
Answer: Option 'C'
Deadlock
2.
A semaphore :
Answer: Option 'C'
can be accessed from multiple processes
3.
The two kinds of semaphores are :
Answer: Option 'B'
binary & counting
4.
A mutex :
Answer: Option 'B'
must be accessed from only one process
5.
At a particular time of computation the value of a counting semaphore is 7.Then 20 P operations and 15 V operations were completed on this semaphore.The resulting value of the semaphore is : (GATE 1987)
Answer: Option 'B'
2
P represents Wait and V represents Signal. P operation will decrease the value by 1 everytime and V operation will increase the value by 1 everytime.
6.
A binary semaphore is a semaphore with integer values :
Answer: Option 'A'
1
7.
Semaphores are mostly used to implement :
Answer: Option 'B'
IPC mechanisms
8.
Spinlocks are intended to provide __________ only.
Answer: Option 'B'
Bounded Waiting