pretest2
pretest2
2. When several processes access the same data concurrently and the outcome
of the execution depends on the particular order in which the access takes place
is called ________
a) dynamic condition
b) race condition
c) essential condition
d) critical condition
6. In UNIX, the return value for the fork system call is _____ for the child process
and _____ for the parent process.
a) A Negative integer, Zero
b) Zero, A Negative integer
c) Zero, A nonzero integer
d) A nonzero integer, Zero
.A computer system has 6 tape drives, with ‘n’ processes competing for them. Each
process may need 3 tape drives. The maximum value of ‘n’ for which the system is
guaranteed to be deadlock free is?
Select one:
3. A parent process calling _____ system call will be suspended until children
processes terminate.
a) wait
b) fork
c) exit
d) exec
8. In the bakery algorithm to solve the critical section problem ____________
a) each process is put into a queue and picked up in an ordered manner
b) each process receives a number (may or may not be unique) and the one
with the lowest number is served next
c) each process gets a unique number and the one with the highest number is
served next
d) each process gets a unique number and the one with the lowest number is
served next
8. The child process completes execution, but the parent keeps executing, then
the child process is known as __________
a) Orphan
b) Zombie
c) Body
d) Dead
7. To _______ to a safe state, the system needs to keep more information about
the states of processes.
a) abort the process
b) roll back the process
c) queue the process
d) none of the mentioned