[go: up one dir, main page]

0% found this document useful (0 votes)
32 views2 pages

Chapter 3 Answers

The document appears to contain a quiz on process synchronization concepts in operating systems. It includes multiple choice questions about processes, process identifiers, the fork system call, how child processes are duplicates of parent processes, which processes can be affected by others, examples of synchronization tools like semaphores, and issues like the producer-consumer problem. It also includes brief prayers or supplications at the beginning and end.

Uploaded by

Ahmed Gamal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Chapter 3 Answers

The document appears to contain a quiz on process synchronization concepts in operating systems. It includes multiple choice questions about processes, process identifiers, the fork system call, how child processes are duplicates of parent processes, which processes can be affected by others, examples of synchronization tools like semaphores, and issues like the producer-consumer problem. It also includes brief prayers or supplications at the beginning and end.

Uploaded by

Ahmed Gamal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

‫ويّس يل أمري‬

‫رب ارشح يل صدري ر‬

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

‫اَل ا ا اَل ا اَل َأن اْت ُس ْب احان ااك ا ي رّن ُك ْن ُت يم ان ا‬


‫الظا يل يم اي‬
ِ ِ ِ

You might also like