60:00
0/30 Attempted
Your Progress
Attempted 0
Correct 0
Incorrect 0
Skipped 0
Score 0
Marks 0

Operating System — Test 4

Page 1 of 3

Review Skipped Questions

0
Question 1
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 2
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 3
Restricting the child process to a subset of the parent’s resources prevents any process from __________
0 System Administrator 2026
Question 4
A parent process calling _____ system call will be suspended until children processes terminate.
0 System Administrator 2026
Question 5
Cascading termination refers to termination of all child processes if the parent process terminates ______
0 System Administrator 2026
Question 6
With _____________ only one process can execute at a time; meanwhile all other process are waiting for the processor. With ______________ more than one process can be running simultaneously each on a different processor.
0 System Administrator 2026
Question 7
In UNIX, each process is identified by its __________
0 System Administrator 2026
Question 8
In UNIX, the return value for the fork system call is _____ for the child process and _____ for the parent process.
0 System Administrator 2026
Question 9
The child process can __________
0 System Administrator 2026
Question 10
The child process completes execution, but the parent keeps executing, then the child process is known as __________
0 System Administrator 2026