System Administrator 2026 — Test 11
Page 1 of 3
Question 1
The wait operation of the semaphore basically works on the basic _______ system call.
0
System Administrator 2026
Question 2
The signal operation of the semaphore basically works on the basic _______ system call.
0
System Administrator 2026
Question 3
If the semaphore value is negative ____________
0
System Administrator 2026
Question 4
The code that changes the value of the semaphore is ____________
0
System Administrator 2026
Question 5
The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0. Process P0 while(true) { wait(S0); print '0'; release(S1); release(S2); } Process P1 wait(S1); release(S0); Process P2 wait(S2); release(S0); How many times will P0 print ‘0’?
0
System Administrator 2026
Question 6
Each process Pi, i = 0,1,2,3,……,9 is coded as follows. repeat P(mutex) {Critical Section} V(mutex) forever The 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)?
0
System Administrator 2026
Question 7
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?
0
System Administrator 2026
Question 8
What is the other name for distance vector routing algorithm?
0
System Administrator 2026
Question 9
How tables are updated in the distance vector routing algorithm?
0
System Administrator 2026
Question 10
Which of the following is not a similarity between flooding and distance vector routing?
0
System Administrator 2026