{"id":48386897,"url":"https://github.com/mtking2/dining-philosophers","last_synced_at":"2026-04-05T22:17:15.946Z","repository":{"id":56349637,"uuid":"127579791","full_name":"mtking2/dining-philosophers","owner":"mtking2","description":"Various flavored solutions to the Dining Philosophers problem.","archived":false,"fork":false,"pushed_at":"2021-09-29T15:05:42.000Z","size":1147,"stargazers_count":6,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-03T06:22:17.276Z","etag":null,"topics":["dining-philosophers","dining-philosophers-problem","hacktoberfest","multithreading","mutex","resource-management","semaphore","threading"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtking2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-31T23:35:18.000Z","updated_at":"2023-09-12T08:03:45.000Z","dependencies_parsed_at":"2022-08-15T17:01:16.274Z","dependency_job_id":null,"html_url":"https://github.com/mtking2/dining-philosophers","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/mtking2/dining-philosophers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtking2%2Fdining-philosophers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtking2%2Fdining-philosophers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtking2%2Fdining-philosophers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtking2%2Fdining-philosophers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtking2","download_url":"https://codeload.github.com/mtking2/dining-philosophers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtking2%2Fdining-philosophers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31452035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dining-philosophers","dining-philosophers-problem","hacktoberfest","multithreading","mutex","resource-management","semaphore","threading"],"created_at":"2026-04-05T22:17:13.838Z","updated_at":"2026-04-05T22:17:15.063Z","avatar_url":"https://github.com/mtking2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Various object-oriented solutions to the [Dining Philosophers Problem](https://en.wikipedia.org/wiki/Dining_philosophers_problem)\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/7/7b/An_illustration_of_the_dining_philosophers_problem.png\" width=350/\u003e\n\u003c/p\u003e\n\n## Variants:\n- [C](C/)\n- [C#](C#/)\n- [C++](C++/)\n- [Go](golang/)\n- [Java](java/)\n- [Python](python/)\n- [Ruby](ruby/)\n- [Rust](rust/)\n\n## Contributing\n\n### Rules\n\nI only ask for two requirements when contributing:\n\n1. You must provide a working solution to the DPP\n2. Your solution must be Object Oriented (or close to it, using structs or the like)\n\n### How to Contribute\n\n1. Fork and clone this repo\n2. Add code for the new variant\n    - 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: `\u003clanguage_dir\u003e/\u003cmy_variant_dir\u003e/`\n3. Create a `README.md` for your variant that describes:\n    - The language used.\n    - The methods used in the solution (i.e. Mutex/Semaphore, Arbitrator, Chandy/Misra)\n    - Instructions on how to run the code\n4. Add a link to the top-level `README.md` to your new solution\n5. Open a PR\n\n## License\n\nGNU GPL v3.0, see [LICENSE](https://github.com/mtking2/dining-philosophers/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtking2%2Fdining-philosophers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtking2%2Fdining-philosophers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtking2%2Fdining-philosophers/lists"}