{"id":25086055,"url":"https://github.com/pcapurro/42philosophers","last_synced_at":"2025-04-01T13:42:46.150Z","repository":{"id":270622678,"uuid":"869975223","full_name":"pcapurro/42philosophers","owner":"pcapurro","description":"A complex simulation of threads set up with the arguments specified by the user.","archived":false,"fork":false,"pushed_at":"2024-10-10T12:00:12.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T08:46:26.814Z","etag":null,"topics":["mutex","posix","pthread","semaphore","synchronization","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/pcapurro.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":"2024-10-09T08:20:54.000Z","updated_at":"2025-01-08T18:01:38.000Z","dependencies_parsed_at":"2025-01-01T22:31:22.536Z","dependency_job_id":"dc034bb8-f2be-45e0-b337-34add0c97f9b","html_url":"https://github.com/pcapurro/42philosophers","commit_stats":null,"previous_names":["pcapurro/42philosophers"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcapurro%2F42philosophers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcapurro%2F42philosophers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcapurro%2F42philosophers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcapurro%2F42philosophers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcapurro","download_url":"https://codeload.github.com/pcapurro/42philosophers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246651240,"owners_count":20811990,"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":["mutex","posix","pthread","semaphore","synchronization","thread"],"created_at":"2025-02-07T08:32:32.035Z","updated_at":"2025-04-01T13:42:46.113Z","avatar_url":"https://github.com/pcapurro.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Philosophers\n### « I never thought philosophy would be so deadly »\n\nThis project consists in a simulation of philosophers (each being represented by a thread) executing a simple routine: take two forks, eat, sleep and think.\nThe routine can be executed forever, but the simulation stops if a philosopher dies or if all the philosophers ate the specified number of meals.\n\nSemaphores, Mutex and Barriers are also used, mainly for thread synchronisation but also to avoid data races.\n\nLogs are displayed during the simulation, in the following format: \\[actual_timestamp] \\[philosopher_id] \\[action].\n\nAll the paramaters of the simulation can be set by the user.\n\nUsage: `./philo [numbers_of_philosophers] [time_to_die] [time_to_eat] [time_to_sleep] [meals_number]`\n\nTime values are in milliseconds and can't be less than 60. Last argument is optionnal.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcapurro%2F42philosophers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcapurro%2F42philosophers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcapurro%2F42philosophers/lists"}