Question: Bounded Buffer Problem This problem is generalized in terms of the Producer-Consumer problem. Solution to this problem is, creating two counting semaphores full and empty

Bounded Buffer Problem

This problem is generalized in terms of the Producer-Consumer problem.

Solution to this problem is, creating two counting semaphores "full" and "empty" to keep track of the current number of full and empty buffers respectively.

The Readers Writers Problem

In this problem there are some processes(called readers) that only read the shared data, and never change it, and there are other processes(called writers) who may change the data in addition to reading or instead of reading it.

There are various type of the readers-writers problem, most centred on relative priorities of readers and writers

Dining Philosophers Problem

The dining philosophers problem involves the allocation of limited resources from a group of processes in a deadlock-free and starvation-free manner.

There are five philosophers sitting around a table, in which there are five chopsticks kept beside them and a bowl of rice in the center. When a philosopher wants to eat, he uses two chopsticks - one from their left and one from their right. When a philosopher wants to think, he keeps down both chopsticks at their original place.

To do:

You need to make two separate applications to solve any two of these problems. Also make sure, both the applications use different tools. Explain the tool you have used along with the code and the screen shots running.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!