ويّس يل أمري
رب ارشح يل صدري ر
Chapter 3
1. A parent process calling _____ system call will be suspended until children
processes terminate.
a) wait b) fork c) exit d) exec
2. In UNIX, each process is identified by its __________
a) Process Control Block b) Device Queue
c) Process Identifier d) None of the mentioned
3. 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
4. The child process can __________
a) be a duplicate of the parent process
b) never be a duplicate of the parent process
c) cannot have another program loaded into its
d) never have another program loaded into it
5. Which process can be affected by other processes executing in the system?
a) cooperating process b) child process
c) parent process d) init process
6. Which one of the following is a synchronization tool?
a) thread b) pipe c) semaphore d) socket
7. A semaphore is a shared integer variable __________
a) that cannot drop below zero b) that cannot be more than zero
c) that cannot drop below one d) that cannot be more than one
اَل ا ا اَل ا اَل َأن اْت ُس ْب احان ااك ا ي رّن ُك ْن ُت يم ان ا
الظا يل يم اي
ِ ِ ِ
ويّس يل أمري
رب ارشح يل صدري ر
8. Process synchronization can be done on __________
a) hardware level b) software level
c) both hardware and software level d) none of the mentioned
9. The bounded buffer problem is also known as
a) Readers – Writer’s problem b) Dining – Philosophers problem
c) Producer – Consumer problem d) None of the mentioned
اَل ا ا اَل ا اَل َأن اْت ُس ْب احان ااك ا ي رّن ُك ْن ُت يم ان ا
الظا يل يم اي
ِ ِ ِ