题目内容

An un-interruptible unit is known as ____________

A. single
B. atomic
C. static
D. none of the mentioned

查看答案
更多问题

Each process Pi, i = 0,1,2,3,……,9 is coded as followsThe code for P10 is identical except that it uses V(mutex) instead of P(mutex). What is the largest number of processes that can be inside the critical section at any moment (the mutex being initialized to 1)?

A. 1
B. 2
C. 3
D. None of the mentioned

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

答案查题题库