The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 ...
View QuestionThe code that changes the value of the semaphore is ____________
a) remainder section code b) non – critical section code c) critical section code d) none of the mentioned
View QuestionIf the semaphore value is negative ____________
a) its magnitude is the number of processes waiting on that semaphore b) it is invalid c) no operation ...
View QuestionThe signal operation of the semaphore basically works on the basic _______ system call.
a) continue() b) wakeup() c) getup() d) start() Answer: b Explanation: wakeup()
View QuestionThe wait operation of the semaphore basically works on the basic _______ system call.
a) stop() b) block() c) hold() d) wait() Answer: b Explanation: block()
View QuestionWhat is the main disadvantage of spinlocks?
a) they are not sufficient for many process b) they require busy waiting c) they are unreliable sometimes d) ...
View QuestionWhat are Spinlocks?
a) CPU cycles wasting locks over critical sections of programs b) Locks that avoid time wastage in context ...
View QuestionWhat are the two atomic operations permissible on semaphores?
a) wait b) stop c) hold d) none of the mentioned Answer: a Explanation: Wait
View QuestionSemaphore is a/an _______ to solve the critical section problem.
a) hardware for a system b) special program for a system c) integer variable d) none of the mentioned Answer: c
View QuestionTestAndSet instruction is executed ____________
a) after a particular process b) periodically c) atomically d) none of the mentioned Answer: c Explanation: TestAndSet instruction is executed ...
View Question