{"id":18671781,"url":"https://github.com/mli42/at42philosophers","last_synced_at":"2025-07-15T14:03:26.949Z","repository":{"id":110129226,"uuid":"295686208","full_name":"mli42/at42Philosophers","owner":"mli42","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-09T12:15:00.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T06:04:10.062Z","etag":null,"topics":["42","fork","multithreading","mutex","mutex-lock","philosophers","philosophers-dinner-problem","pthread","semaphore","thread"],"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/mli42.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}},"created_at":"2020-09-15T10:00:00.000Z","updated_at":"2020-10-09T12:15:03.000Z","dependencies_parsed_at":"2023-05-06T09:17:25.760Z","dependency_job_id":null,"html_url":"https://github.com/mli42/at42Philosophers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mli42/at42Philosophers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mli42%2Fat42Philosophers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mli42%2Fat42Philosophers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mli42%2Fat42Philosophers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mli42%2Fat42Philosophers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mli42","download_url":"https://codeload.github.com/mli42/at42Philosophers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mli42%2Fat42Philosophers/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265437772,"owners_count":23765131,"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":["42","fork","multithreading","mutex","mutex-lock","philosophers","philosophers-dinner-problem","pthread","semaphore","thread"],"created_at":"2024-11-07T09:07:39.037Z","updated_at":"2025-07-15T14:03:26.935Z","avatar_url":"https://github.com/mli42.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# at42Philosophers - [Philosophers Dining Problem](https://en.wikipedia.org/wiki/Dining_philosophers_problem)\n\nUsage : `./binary number_of_philosopher time_to_die time_to_eat time_to_sleep [number_of_time_each_philosophers_must_eat]`\n\n## philo_one uses:\n- [pthread](https://www.youtube.com/watch?v=uA8X5zNOGw8\u0026list=PL9IEJIKnBJjFZxuqyJ9JqVYmuFZHr7CFM\u0026index=1)\n- [pthread - pass arguments](https://www.youtube.com/watch?v=It0OFCbbTJE\u0026list=PL9IEJIKnBJjFZxuqyJ9JqVYmuFZHr7CFM\u0026index=2)\n- [Mutex Locks](https://www.youtube.com/watch?v=9axu8CUvOKY\u0026list=PL9IEJIKnBJjFZxuqyJ9JqVYmuFZHr7CFM\u0026index=3)\n- [`volatile` keyword](https://www.youtube.com/watch?v=6tIWFEzzx9I\u0026list=PL9IEJIKnBJjFZxuqyJ9JqVYmuFZHr7CFM\u0026index=8)\n## philo_two uses:\n- [Semaphore](https://www.youtube.com/watch?v=ukM_zzrIeXs\u0026list=PL9IEJIKnBJjFZxuqyJ9JqVYmuFZHr7CFM\u0026index=9)\n## philo_three uses:\n- Fork ⚠  Sharing data between child processes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmli42%2Fat42philosophers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmli42%2Fat42philosophers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmli42%2Fat42philosophers/lists"}