NEW
Font size
S
M
L
XL
Worksheetshpc3
Total questions: 12
Worksheet time: 6mins
Name
Class
Date
1.
If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called
a)
mutual exclusion
b)
critical exclusion
c)
synchronous exclusion
d)
asynchronous exclusion
2.
Which one of the following is a synchronization tool?
a)
thread
b)
pipe
c)
semaphore
d)
socket
3.
A semaphore is a shared integer variable
a)
that can not drop below zero
b)
that can not be more than zero
c)
that can not drop below one
d)
that can not be more than one
4.
Mutual exclusion can be provided by the
a)
mutex locks
b)
binary semaphores
c)
both mutex locks and binary semaphores
d)
none of the mentioned
5.
Process synchronization can be done on
a)
hardware level
b)
software level
c)
both hardware and software level
d)
none of the mentioned
6.
A monitor is a module that encapsulates
a)
shared data structures
b)
procedures that operate on shared data structure
c)
synchronization between concurrent procedure invocation
d)
all of the mentioned
7.
to enable a process to wait within the monitor,
a)
) a condition variable must be declared as condition
b)
condition variables must be used as boolean objects
c)
semaphore must be used
d)
all of the mentioned
8.
Which process can be affected by other processes executing in the system?
a)
cooperating process
b)
child process
c)
parent process
d)
init process
9.
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
10.
A binary semaphore is a semaphore with integer values :
a)
1
b)
-1
c)
0.8
d)
0.5
11.
Semaphores are mostly used to implement :
a)
System calls
b)
IPC mechanisms
c)
System protection
d)
None of the mentioned
12.
A mutex :
a)
is a binary mutex
b)
must be accessed from only one process
c)
can be accessed from multiple processes
d)
None of the mentioned
Reset
