Skip to content

This repository contains solutions to the classical synchronization problem the Dining-Philosopher-Problem using Monitors.

License

Notifications You must be signed in to change notification settings

mushfiqur-anik/Dining-Philosopher-Problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dining-Philosopher-Problem

This repository contains files for the Dining-Philosopher-Problem for Operating Systems course Comp-346 offered by Concordia University(Montreal, Canada)

Description of the problem

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.

File List

Common file
  • BaseThread.java
Task-1 to Task-6
  • Monitor.Java
  • Philosopher.java
  • DiningPhilosophers.java

Built with

  • Java - The programming language used
  • Eclipse - The IDE used

Author(s)

This project is licensed under the MIT License - see the LICENSE file for details

About

This repository contains solutions to the classical synchronization problem the Dining-Philosopher-Problem using Monitors.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages