An open API service indexing awesome lists of open source software.

https://github.com/mtking2/dining-philosophers

Various flavored solutions to the Dining Philosophers problem.
https://github.com/mtking2/dining-philosophers

dining-philosophers dining-philosophers-problem hacktoberfest multithreading mutex resource-management semaphore threading

Last synced: 4 months ago
JSON representation

Various flavored solutions to the Dining Philosophers problem.

Awesome Lists containing this project

README

          

# Various object-oriented solutions to the [Dining Philosophers Problem](https://en.wikipedia.org/wiki/Dining_philosophers_problem)



## Variants:
- [C](C/)
- [C#](C#/)
- [C++](C++/)
- [Go](golang/)
- [Java](java/)
- [Python](python/)
- [Ruby](ruby/)
- [Rust](rust/)

## Contributing

### Rules

I only ask for two requirements when contributing:

1. You must provide a working solution to the DPP
2. Your solution must be Object Oriented (or close to it, using structs or the like)

### How to Contribute

1. Fork and clone this repo
2. Add code for the new variant
- If you want to add a different solution to an already existing language then simply put it in a sub-directory under that language like so: `//`
3. Create a `README.md` for your variant that describes:
- The language used.
- The methods used in the solution (i.e. Mutex/Semaphore, Arbitrator, Chandy/Misra)
- Instructions on how to run the code
4. Add a link to the top-level `README.md` to your new solution
5. Open a PR

## License

GNU GPL v3.0, see [LICENSE](https://github.com/mtking2/dining-philosophers/blob/master/LICENSE)