Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
/ CS_442_pj_02 Public archive

"token ring with requests" algorithm for distributed mutual exclusion

License

Notifications You must be signed in to change notification settings

kucukaslan/CS_442_pj_02

Repository files navigation

CS 442 Project 2

Running the project

Make sure that redis is running by redic-cli ping

The program is named main.py.
Usage: python3 main.py
Example:

 python3 main.py 5 DATAFILE 100 25 LOGFILE 1000

We also provided a makefile that you can use both running and cleaning the processes. We strongly suggest you to call make k before running the program to clean the remnants from other executions that improperly killed.
To kill all the processes created by current and previous executions simply call

make k

which also cleans the redis DB to prepare a clean DB for next execution. Then you can run program by make call or running the program as previously described.

Version Information

  • redis version = 6.2.6 (also tested with 5.0.3)

  • python version = 3.7.4 (also tested with 3.10.6)

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

Team Members

  • 21902298 Giray Akyol
  • 21901779 Muhammed Can Küçükaslan
  • 21601899 Hakan Sivük

About

"token ring with requests" algorithm for distributed mutual exclusion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •