Dining-Philosophers problem

Hello house,am new,really new in the Java world,and I have this Problem to solve,using JAVA.
'DEVELOP AN APPLICATION THAT SOLVES THE DINING - PHILOSOPHERS PROBLEM USING MONITORS'.
Specifications where given as follows:
1. Create a GUI that has three buttons,namely: Start, Stop, And Exit.
2. The user is permitted to enter the number of Philosophers.
3. When the Start is clicked, the application begins by displaying the state of all Philosophers. A Philosopher can be in three states - Thinking, Hungry and Eating.
4. Philosophers can stay Thinking or Eating for randomly selected periods between 2 and 5 seconds.
5. The state of all philosophers is displayed every 50milliseconds.
6. When the Stop button is pressed all Philosophers sleep.
7. When the Exit button is pressed the application closes.
N.B.
Develop the Monitor Class.
Develop the Philosopher class.
Develop other classes as necessary.
Thanks,rily apreciate the welcome
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories