{"id":25221664,"url":"https://github.com/yrhiba/philosophers","last_synced_at":"2025-07-08T08:07:17.400Z","repository":{"id":177139622,"uuid":"597467862","full_name":"yrhiba/Philosophers","owner":"yrhiba","description":"One or more philosophers sit at a round table. There is a large bowl of spaghetti in the middle of the table.","archived":false,"fork":false,"pushed_at":"2023-06-25T23:30:58.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T12:11:39.446Z","etag":null,"topics":["c","multiprocessing","multithreading","mutexes","semaphores"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yrhiba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2023-02-04T16:41:26.000Z","updated_at":"2023-10-13T19:10:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"aa2b4972-c403-4423-910c-c2351b94c2fa","html_url":"https://github.com/yrhiba/Philosophers","commit_stats":null,"previous_names":["yrhiba/philosophers"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yrhiba/Philosophers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrhiba%2FPhilosophers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrhiba%2FPhilosophers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrhiba%2FPhilosophers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrhiba%2FPhilosophers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yrhiba","download_url":"https://codeload.github.com/yrhiba/Philosophers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yrhiba%2FPhilosophers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264229319,"owners_count":23576246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["c","multiprocessing","multithreading","mutexes","semaphores"],"created_at":"2025-02-10T22:52:59.734Z","updated_at":"2025-07-08T08:07:17.390Z","avatar_url":"https://github.com/yrhiba.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Philosophers\nOne or more philosophers sit at a round table. There is a large bowl of spaghetti in the middle of the table.\n\nThe goal of this project is to learn how to use threads and mutexs, also in bonus part i recode the project using multiprocess and semaphore.\n\nOverview:\n\n• One or more philosophers sit at a round table.\n  There is a large bowl of spaghetti in the middle of the table.\n  \n• The philosophers alternatively eat, think, or sleep.\n  While they are eating, they are not thinking nor sleeping;\n  while thinking, they are not eating nor sleeping;\n  and, of course, while sleeping, they are not eating nor thinking.\n  \n• There are also forks on the table. There are as many forks as philosophers.\n \n• Because serving and eating spaghetti with only one fork is very inconvenient, a\n  philosopher takes their right and their left forks to eat, one in each hand.\n  \n• When a philosopher has finished eating, they put their forks back on the table and\n  start sleeping. Once awake, they start thinking again. The simulation stops when\n  a philosopher dies of starvation.\n  \n• Every philosopher needs to eat and should never starve.\n• Philosophers don’t speak with each other.\n• Philosophers don’t know if another philosopher is about to die.\n• No need to say that philosophers should avoid dying.\n\n\n\nProgram name :\n\n  philo\n                \nArguments :\n\n  number_of_philosophers time_to_die time_to_eat time_to_sleep [number_of_times_each_philosopher_must_eat]\n                \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyrhiba%2Fphilosophers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyrhiba%2Fphilosophers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyrhiba%2Fphilosophers/lists"}