题目内容

The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0.How many times will P0 print ‘0’?

At least twice
B. Exactly twice
C. Exactly thrice
D. Exactly once

查看答案
更多问题

The 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

If the semaphore value is negative ____________

A. its magnitude is the number of processes waiting on that semaphore
B. it is invalid
C. no operation can be further performed on it until the signal operation is performed on it
D. none of the mentioned

The wait operation of the semaphore basically works on the basic _______ system call.

A. stop()
B. block()
C. hold()
D. wait()

The signal operation of the semaphore basically works on the basic _______ system call

A. continue()
B. wakeup()
C. getup()
D. start()

答案查题题库