Skip to content

tmarcuzz/rabbitmq_raymond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rabbitmq_raymond

Python implementation of Raymond's algorithm with RabbitMQ for a school project

Usage

python main.py number_of_nodes

Then you can type four commands:

  • to initialize from node:
init node
  • to make nodes ask for critical section:
ask node1 node2 ... noden
  • to kill nodes:
kill node1 node2 ... noden
  • to quit:
exit

You can type random instead of node. This will create a thread that will randomly kill a node or make it ask for the critical section.

Example:

ask node1 random random

About

Implementation of Raymond's algorithm with RabbitMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages