Skip to content

m-RezaFahlevi/dpproblem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Dining Philosopher Problem


The problem is solved in Python 3.8, https://www.python.org/downloads/

dpp

The main goals of this repository is, how to prevent a deadlock in the simulation.

Prelude


You have to install these 3 python module, numpy, pandas and matplotlib. Execute following code in your terminal

pip install numpy
pip install pandas
pip install matplotlib

Visit the following link if you want to know more about numpy, pandas, and matplotlib.https://pypi.org/project/numpy/ for numpy, https://pypi.org/project/pandas/ for pandas, and https://pypi.org/project/matplotlib/ for matplotlib.

How to Run


The main source code is dppgreedy.py, just clone this repository or download the file. Run the file in your python IDE, or, if python had been installed in your system, open your terminal, change the current working directory to the directory where file dppgreedy.py belongs to, then execute the following code

python dppgreedy.py

About

Dining Philosopher Problem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages