Operating System (3140702) MCQs

MCQs of Inter Process Communication

Showing 21 to 30 out of 50 Questions
21.
In the bounded buffer problem ____________
(a) there is only one buffer
(b) there are n buffers (n being greater than one but finite)
(c) there are infinite buffers
(d) the buffer size is bounded
Answer:

Option (b)

22.
The dining – philosophers problem will occur in case of ____________
(a) 5 philosophers and 5 chopsticks
(b) 4 philosophers and 5 chopsticks
(c) 3 philosophers and 5 chopsticks
(d) 6 philosophers and 5 chopsticks
Answer:

Option (a)

23.
A monitor is a type of ____________
(a) semaphore
(b) low level synchronization construct
(c) high level synchronization construct
(d) None of the mentioned
Answer:

Option (c)

24.
A procedure defined within a ________ can access only those variables declared locally within the _______ and its formal parameters.
(a) process, semaphore
(b) process, monitor
(c) semaphore, semaphore
(d) monitor, monitor
Answer:

Option (d)

25.
The monitor construct ensures that ____________
(a) only one process can be active at a time within the monitor
(b) n number of processes can be active at a time within the monitor (n being greater than 1)
(c) the queue has only one process in it at a time
(d) All of the mentioned
Answer:

Option (a)

26.
What are the operations that can be invoked on a condition variable in monitor?
(a) Wait & Signal
(b) Hold & Wait
(c) Signal & Hold
(d) Continue & Signal
Answer:

Option (a)

27.
If no process is suspended, the signal operation ____________
(a) puts the system into a deadlock state
(b) suspends some default process execution
(c) nothing happens
(d) the output is unpredictable
Answer:

Option (c)

28.
Which are two fundamental models of interprocess communication:
(a) Shared memory and message passing
(b) Independent and cooperating
(c) Cooperating and shared memory
(d) Shared memory and independent
Answer:

Option (a)

29.
In producer–consumer problem using shared memory, Select appropriate statement from the below.
(a) We must have available a buffer of items that can be filled by the producer and emptied by the consumer
(b) A producer can consume one item while the consumer is producing another item
(c) 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
(d) The buffer will reside in a region of memory that need not be to shared by the producer and consumer processes
Answer:

Option (a)

30.
In Message-Passing Systems, A message-passing facility provides at least two operations:
(a) send(message) and delete(message)
(b) delete(message) and receive (message)
(c) send(message) and receive(message)
(d) write(message) and delete(message)
Answer:

Option (c)

Showing 21 to 30 out of 50 Questions