{"id":19845272,"url":"https://github.com/taisiabarteneva/philosophers","last_synced_at":"2026-06-09T06:03:30.640Z","repository":{"id":134371905,"uuid":"452403611","full_name":"taisiabarteneva/philosophers","owner":"taisiabarteneva","description":"A solution to dining philosophers problem","archived":false,"fork":false,"pushed_at":"2022-02-10T14:54:14.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T12:26:01.934Z","etag":null,"topics":["c","dining-philosophers-problem","djikstra-algorithm","multiprocessing","multithreading"],"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/taisiabarteneva.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":"2022-01-26T19:02:31.000Z","updated_at":"2022-09-08T17:08:15.000Z","dependencies_parsed_at":"2023-08-11T07:01:17.868Z","dependency_job_id":null,"html_url":"https://github.com/taisiabarteneva/philosophers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taisiabarteneva%2Fphilosophers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taisiabarteneva%2Fphilosophers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taisiabarteneva%2Fphilosophers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taisiabarteneva%2Fphilosophers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taisiabarteneva","download_url":"https://codeload.github.com/taisiabarteneva/philosophers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241224224,"owners_count":19929875,"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","dining-philosophers-problem","djikstra-algorithm","multiprocessing","multithreading"],"created_at":"2024-11-12T13:07:02.684Z","updated_at":"2026-06-09T06:03:30.609Z","avatar_url":"https://github.com/taisiabarteneva.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 42-philosophers\nA solution to dining philosophers problem using threads and mutexes. It is one of the classic problems used to describe synchronization issues in a multithreading program.\n\n## What have I learned\n- Threads\n- Synchronization primitives such as mutex and semaphore\n\nI decided to implement an algorithm formulated by Dijkstra due to its simplicity and elegance.\n\nA program takes following arguments:\n\n- number_of_philosophers\n- time_to_die (in milliseconds)\n- time_to_eat (in milliseconds)\n- time_to_sleep (in milliseconds) (optional)\n\n## How to build\n```\n$\u003e make\n```\n## How to launch\nRun with you parameters, e.g. :\n```\n$\u003e ./philo 5 800 200 200 7\n```\n\n\n![Screen Shot 2022-02-10 at 5 52 13 PM](https://user-images.githubusercontent.com/95509213/153433035-b44bd562-28c2-4342-bd34-92a7a7585015.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaisiabarteneva%2Fphilosophers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaisiabarteneva%2Fphilosophers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaisiabarteneva%2Fphilosophers/lists"}