{"id":17036800,"url":"https://github.com/iamareebjamal/semaphores-example","last_synced_at":"2026-04-29T20:03:32.429Z","repository":{"id":75134621,"uuid":"81941031","full_name":"iamareebjamal/semaphores-example","owner":"iamareebjamal","description":"Basic process synchronisation using semaphores in linux demonstrated by special kind of Dining Philosophers problem","archived":false,"fork":false,"pushed_at":"2017-02-15T20:21:11.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T22:45:38.841Z","etag":null,"topics":["cpp","dining-philosophers-problem","process-synchronisation","semaphore"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamareebjamal.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-14T12:00:21.000Z","updated_at":"2017-02-15T20:07:17.000Z","dependencies_parsed_at":"2023-06-05T11:31:12.183Z","dependency_job_id":null,"html_url":"https://github.com/iamareebjamal/semaphores-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iamareebjamal/semaphores-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamareebjamal%2Fsemaphores-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamareebjamal%2Fsemaphores-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamareebjamal%2Fsemaphores-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamareebjamal%2Fsemaphores-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamareebjamal","download_url":"https://codeload.github.com/iamareebjamal/semaphores-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamareebjamal%2Fsemaphores-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["cpp","dining-philosophers-problem","process-synchronisation","semaphore"],"created_at":"2024-10-14T08:52:01.190Z","updated_at":"2026-04-29T20:03:27.421Z","avatar_url":"https://github.com/iamareebjamal.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dining Philosophers using Semaphores  \n[![Codacy grade](https://img.shields.io/codacy/grade/e05f34ee709541de8446efca8cf15f0e.svg)]()\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)  \n\n\u003e Basic process synchronisation using semaphores in linux demonstrated by special kind of Dining Philosophers problem\n\nProject used POSIX semaphores to synchronise chopsticks among 6 philosophers sitting across a table.\n\nSee [this](https://en.wikipedia.org/wiki/Dining_philosophers_problem)\n\n### Description\n\nThis repo contains a special form of this problem.\n\n- There are only 3 chopsticks shared among the philosophers\n- There are 4 chopsticks on the table\n- First, the philospher has to pick up a chopstick from his side (from the 3 fixed ones)\n- Then, he has to pick one from the 4 kept on table. There is no resourse hierarchy among these, nor any absolute posiition.\n- Eat! Profit\n\n### *classic* branch\n\nThe `classic` branch contains the solution to the original classic problem\n\n### Author\n\nAreeb Jamal - [@iamareebjamal](https://github.com/iamareebjamal)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamareebjamal%2Fsemaphores-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamareebjamal%2Fsemaphores-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamareebjamal%2Fsemaphores-example/lists"}