In this section of Operating System Process Management.it contain Operating System Process Management – Interprocess Communication MCQs (Multiple Choice Questions Answers).All the MCQs (Multiple Choice Question Answers) requires in detail reading of Operating System subject as the hardness level of MCQs have been kept to advanced level.

PRACTICE IT NOW TO SHARPEN YOUR CONCEPT AND KNOWLEDGE

view hide answers

1. Which are two fundamental models of interprocess communication:
  1. shared memory
  2. message passing.
  3. independent
  4. cooperating

  • 1,2
  • 2,3
  • 3,4
  • 1,4

2. Which of the following is True for Shared Memory and message passing interprocess communicatoin.
I. In the shared-memory model, a region of memory that is shared by cooperating processes is established.
II. In the message-passing model, communication takes place by means of messages exchanged between the cooperating processes
III. Message passing is useful for exchanging Biger amounts of data, because no conflicts need to be avoided.
IV. Message passing is also Difficult to implement in a distributed system than shared memory.
V. Shared memory can be faster than message passing, since message-passing systems are typically implemented using system calls

  • 1 2 3 only
  • 1 2 5 only
  • 2 3 4 only
  • 1 3 4 only

3. In producer–consumer problem using shared memory ,Select appropriate statement from the below.

  • we must have available a buffer of items that can be filled by the producer and emptied by the consumer
  • A producer can consume one item while the consumer is producing another item
  • No synchronization required between The producer and consumer , so that the consumer does not try to consume an item that has not yet been produced.
  • the buffer will reside in a region of memory that need not be to shared by the producer and consumer processes.

4. Using producer–consumer problem using Shared Memory Interprocess Communication using Unbounded Buffer:

  • There is Limit on the size of the buffer.
  • Assumes a fixed buffer size.
  • the consumer must wait if the buffer is empty, and the producer must wait if the buffer is full
  • There is no practical limit on the size of the buffer. The consumer may have to wait for new items, but the producer can always produce new items

5. Using producer–consumer problem using Shared Memory Interprocess Communication using Bounded Buffer:

  • There is Limit on the size of the buffer.
  • There is a fixed buffer size
  • The consumer must wait if the buffer is empty, and the producer must wait if the buffer is full
  • There is no practical limit on the size of the buffer. The consumer may have to wait for new items, but the producer can always produce new items.
  • B and C

6. Message passing provides a mechanism to allow processes to communicate and to synchronize their actions

  • By sharing the same address space
  • without sharing the same address space
  • by sharing the same process number and Process Identifier
  • None of the above

7. In Message-Passing Systems of Interprocess Communication

  • Messages sent by a process can be either fixed or variable in size.
  • Messages sent by a process can be fixed in size
  • Messages sent by a process can be variable in size
  • None of the above

8. In Message-Passing Systems ,A message-passing facility provides at least two operations:

  • send(message) and delete(message)
  • delete(message) and receive (message)
  • send(message) and receive(message)
  • write(message) and delete(message)

9. Under direct communication, each process P and Q that wants to communicate must explicitly name the recipient or sender of the communication. In this scheme, which of the following primitives are required:
  1. send(P, message)-Send a message to process P.
  2. receive(Q, message)-Receive a message from process Q..
  3. receive(id, message)-Receive a message from any process.
  4. send(id, message)-Send a message to any process

  • 1 and 3
  • 2 and 4
  • 3 and 4
  • 1 and 2

10. Under direct communication, when asymmetry in addressing scheme is employed. the send() and receive() primitives are defined as follows:
  1. send(P, message)-Send a message to process P.
  2. receive(Q, message)-Receive a message from process Q..
  3. receive(id, message) - Receive a message from any process.
  4. send(id, message) - Send a message to any process

  • 1 and 3
  • 2 and 4
  • 3 and 4
  • 1 and 2
Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook