OS Objective Questions
OS Objective Questions
OS Objective Questions
7. When a pipe is defined – its either end can be utilized for reading / writing
a. True
b. False
8. Which of the following are true in the case of a pipe as a mechanism of IPC?
a. A pipe is for uni-directional communication.
b. A pipe uses a buffer and the size of the buffer can be specified by the user.
c. Pipes can be extended to establish communication between processes resident
on different machines provided we use the process id together with IP address
of the machines.
d. Pipes can not support broadcast.
9. Which of the following statements are true for shared files as a mechanism for IPC.
a. Define a file_name in the sender and give access permission for the world.
b. Define shared file directory as a shared object.
c. Define a file pointer as a shared object and use a semaphore in mutually
exclusive manner.
d. Files can be shared any way if the processes belong to the users in the same
group.
10. Suppose we use a shared file pointer mechanism for IPC. Also, suppose there are
several processes that read this file but there is one and only one clearly identified
process that writes into it Reflect on the following:
a. We do not need semaphore protection as only one process is writing.
b. We need one semaphore to ensure exclusive write operation.
c. We need as many semaphores as the processes using the shared file
pointer.
11. Which of the following statements are true for shared memory as a IPC mechanism.
a. The shared memory is defined as a “safe area” and gets attached to the the
processes that share this area.
b. The shared memory model uses an array which is defined in all the processes
that share the area.
c. The shared memory is a specific chunk of main memory which is in the temp
directory and is accessible during the life time of the processes sharing it.