Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (24 loc) · 1.12 KB

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