Inter Process Communication Questions and Answers

Operating System Questions and Answers – Inter Process Communication

This set of Operating System Multiple Choice Questions & Answers (MCQs) focuses on “Inter Process Communication”.

1. Which of the following are TRUE for direct communication?
a) A communication link can be associated with N number of process(N = max. number of processes supported by system)
b) A communication link is associated with exactly two processes
c) Exactly N/2 links exist between each pair of processes(N = max. number of processes supported by system)
d) Exactly two link exists between each pair of processes

Explanation: A communication link is related with exactly two processes in direct communication. Between two processes, there must be one communication channel.

2. In indirect communication between processes P and Q __________
a) there is another process R to handle and pass on the messages between P and Q
b) there is another machine between the two processes to help communication
c) there is a mailbox to help communication between P and Q
d) none of the mentioned

Explanation: A mailbox is used in indirect communication between processes P and Q to facilitate communication. A mailbox can be thought of as an object into which processes can deposit messages and from which they can be deleted.

3. In the non blocking send __________
a) the sending process keeps sending until the message is received
b) the sending process sends the message and resumes operation
c) the sending process keeps sending until it receives a message
d) none of the mentioned

Explanation: The transmitting process sends the message and then resumes operation in a non-blocking send. The sending procedure is unconcerned with the receipt. Asynchronous transmit is another name for it.

4. In the Zero capacity queue __________
a) the queue can store at least one message
b) the sender blocks until the receiver receives the message
c) the sender keeps sending and the messages don’t wait in the queue
d) none of the mentioned

Explanation: The sender blocks in the Zero capacity queue until the message is received by the recipient. The maximum capacity of a zero capacity queue is zero, therefore there are no waiting messages in it.

5. The Zero Capacity queue __________
a) is referred to as a message system with buffering
b) is referred to as a message system with no buffering
c) is referred to as a link
d) none of the mentioned

Explanation: A message system with no buffering is referred to as a zero capacity queue. The maximum capacity of a zero capacity queue is zero, therefore there are no waiting messages in it.

6. Bounded capacity and Unbounded capacity queues are referred to as __________
a) Programmed buffering
b) Automatic buffering
c) User defined buffering
d) No buffering

Explanation: Automatic buffering refers to both finite capacity and unbounded capacity queues. The Bounded capacity queue’s buffer capacity is finite, while the Unbounded queue’s buffer capacity is infinite.

7. What is Interprocess communication?
a) allows processes to communicate and synchronize their actions when using the same address space
b) allows processes to communicate and synchronize their actions
c) allows the processes to only synchronize their actions without communication
d) none of the mentioned

Explanation: Interprocess Communication allows processes to communicate and synchronize their actions. Interprocess Communication (IPC) mechanism is used by cooperating processes to exchange data and information.
There are two models of IPC:
→ Shared Memory
→ Message Passing

8. Message passing system allows processes to __________
a) communicate with each other without sharing the same address space
b) communicate with one another by resorting to shared data
c) share data
d) name the recipient or sender of the message

Explanation: Processes can communicate with each other via the Message Passing system without sharing the same address space.

9. Which of the following two operations are provided by the IPC facility?
a) write & delete message
b) delete & receive message
c) send & delete message
d) receive & send message

Explanation: The IPC facility offers two operations: receive and transmit messages. Data is exchanged between cooperating processes.

10. Messages sent by a process __________
a) have to be of a fixed size
b) have to be a variable size
c) can be fixed or variable sized
d) none of the mentioned

Explanation: A process’s messages can be fixed or variable in size. If the process’s message size is fixed, system level implementation is simple, but programming becomes more challenging. If the message size of the process is flexible, system level implementation becomes more complex, but programming becomes easier.

11. The link between two processes P and Q to send and receive messages is called __________
a) communication link
b) message-passing link
c) synchronization link
d) all of the mentioned

Explanation: The communication connection is the link that allows two processes P and Q to send and receive messages. Two processes, P and Q, desire to communicate with one another; there must be a communication link between them so that both processes can send and receive messages via it.

The tools that an operating system provides to allow processes to handle shared data are referred to as interprocess communication or interprocess communication (IPC). Clients and servers are two types of IPC that can be used by programmes. The client requests data, and the server answers. As is customary in distributed computing, many applications are both clients and servers. The design process for microkernels and nanokernels, which limit the number of features offered by the kernel, relies heavily on IPC.

Leave a Reply

Your email address will not be published. Required fields are marked *