This repository contains files for the Dining-Philosopher-Problem for Operating Systems course Comp-346 offered by Concordia University(Montreal, Canada)
This project is a slightly extended version of the classical synchronization problem : Dining Philosopher Problem. The slight extension refers to the fact that sometimes philosophers would like to talk, but only one (any) philosopher can be talking at a time while they are not eating. A philosopher can only be talking for a limited amount of time, and while one philosopher is talking, none of the other philosophers can sleep; however they can be eating or thinking. The problem is solved using Monitor Synchronization Construct built on top of Java's synchronization primitives.
- BaseThread.java
- Monitor.Java
- Philosopher.java
- DiningPhilosophers.java
This project is licensed under the MIT License - see the LICENSE file for details