edited by
3,136 views
2 votes
2 votes

Procedures $P1$ and $P2$ have a producer-consumer relationship, communicating by the use of a set of shared buffers.

$P1$: repeat

            Obtain an empty buffer

            Fill it

            Return a full buffer

         forever

$P2$: repeat

            Obtain a full buffer

            Empty it

            Return an empty buffer

         forever

Increasing the number of buffers is likely to do which of the following?

  1. Increase the rate at which requests are satisfied (throughput)
  2. Decrease the likelihood of deadlock
  3. Increase the ease of achieving a correct implementation
  1. III only
  2. II only
  3. I only
  4. II and III only
edited by

1 Answer

4 votes
4 votes
(C) I Only is correct.

 

Increasing the memory size increases the rate at which requests are satisfied but can not alter the possibility of deadlock and neither does it play any role in implementation.
Answer:

Related questions

3 votes
3 votes
3 answers
2
Arjun asked Apr 22, 2018
10,805 views
The following $C$ program:{ fork(); fork(); printf("yes"); }If we execute this core segment, how many times the string yes will be printed?Only once2 times4 times8 times
3 votes
3 votes
2 answers
3
Arjun asked Apr 22, 2018
3,730 views
The difference between a named pipe and a regular file in Unix is thatUnlike a regular file, named pipe is a special fileThe data in a pipe is transient, unlike the conte...