Correct Answer - Option 1 : Producer - consumer problem
The correct answer is option 1.
The Bounded buffer problem is also known as the producer-consumer problem.
- The Producer-Consumer problem is a classic multi-process synchronization problem, which means we're attempting to synchronize several processes.
- In the producer-consumer dilemma, there is only one Producer who produces certain goods, and there is only one Consumer who consumes the Producer's products. Both producers and users share the same memory buffer, which has a fixed capacity.
- The Producer's job is to make the object, store it in the memory buffer, and then start making more. The Consumer's responsibility is to consume the object from the memory buffer.
Hence the correct answer is Producer - consumer problem.
The readers-writers problem is a classical problem of process synchronization, it relates to a data set such as a file that is shared between more than one process at a time. Among these various processes, some are Readers - which can only read the data set; they do not perform any updates, some are Writers - can both read and write in the data sets.
Dining Philosophers problem:
The dining philosophers problem is another classic synchronization problem that is used to evaluate situations where there is a need of allocating multiple resources to multiple processes.