{"id":20959229,"url":"https://github.com/codophobia/producer-consumer-problem-solution-in-c","last_synced_at":"2025-05-14T06:33:00.166Z","repository":{"id":40555735,"uuid":"226928880","full_name":"codophobia/producer-consumer-problem-solution-in-c","owner":"codophobia","description":"Producer-consumer problem solution using semaphore and mutex","archived":false,"fork":false,"pushed_at":"2022-08-04T23:09:49.000Z","size":407,"stargazers_count":18,"open_issues_count":1,"forks_count":20,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T14:11:16.675Z","etag":null,"topics":["mutex","producer-consumer","semaphore","synchronization"],"latest_commit_sha":null,"homepage":"https://shivammitra.com/c/producer-consumer-problem-in-c/#","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/codophobia.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}},"created_at":"2019-12-09T17:28:58.000Z","updated_at":"2023-10-16T12:00:13.000Z","dependencies_parsed_at":"2022-08-27T20:32:13.747Z","dependency_job_id":null,"html_url":"https://github.com/codophobia/producer-consumer-problem-solution-in-c","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/codophobia%2Fproducer-consumer-problem-solution-in-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2Fproducer-consumer-problem-solution-in-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2Fproducer-consumer-problem-solution-in-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codophobia%2Fproducer-consumer-problem-solution-in-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codophobia","download_url":"https://codeload.github.com/codophobia/producer-consumer-problem-solution-in-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254084753,"owners_count":22011939,"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","producer-consumer","semaphore","synchronization"],"created_at":"2024-11-19T01:52:16.495Z","updated_at":"2025-05-14T06:32:55.154Z","avatar_url":"https://github.com/codophobia.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Multi Prodcuer-Consumer Problem Solution Using Semaphore and Mutex\n\nBlog: https://shivammitra.com/c/producer-consumer-problem-in-c\n\nThe producer-consumer problem is one of the classical examples of synchronization. This program simulates a multi producer-consumer problem in C.\n\n\u003cb\u003eCompiling the program:\u003c/b\u003e gcc producer-consumer.c -pthread\n\n\u003cb\u003eRunning the program:\u003c/b\u003e ./a.out\n\n**Output**\n\n![output](output.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodophobia%2Fproducer-consumer-problem-solution-in-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodophobia%2Fproducer-consumer-problem-solution-in-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodophobia%2Fproducer-consumer-problem-solution-in-c/lists"}