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.
- shared memory
- message passing.
- independent
- cooperating
- 1,2
- 2,3
- 3,4
- 1,4
- 1 2 3 only
- 1 2 5 only
- 2 3 4 only
- 1 3 4 only
- 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.
One solution to the producer–consumer problem uses shared memory. To allow producer and consumer processes to run concurrently, we must have available a buffer of items that can be filled by the producer and emptied by the consumer. This buffer will reside in a region of memory that is shared by the producer and consumer processes. A producer can produce one item while the consumer is consuming another item. The producer and consumer must be synchronized, so that the consumer does not try to consume an item that has not yet been produced
- 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
The unbounded buffer places 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.
- 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
The bounded buffer assumes a fixed buffer size. In this case, the consumer must wait if the buffer is empty, and the producer must wait if the buffer is full.
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:
- send(P, message)-Send a message to process P.
- receive(Q, message)-Receive a message from process Q..
- receive(id, message)-Receive a message from any process.
- 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:
- send(P, message)-Send a message to process P.
- receive(Q, message)-Receive a message from process Q..
- receive(id, message) - Receive a message from any process.
- send(id, message) - Send a message to any process
- 1 and 3
- 2 and 4
- 3 and 4
- 1 and 2