{"id":22334960,"url":"https://github.com/ro-el-c/operatingsystem","last_synced_at":"2025-06-29T17:03:59.825Z","repository":{"id":119740074,"uuid":"477776820","full_name":"ro-el-c/OperatingSystem","owner":"ro-el-c","description":"2022-1 운영체제 과제","archived":false,"fork":false,"pushed_at":"2022-05-17T14:49:34.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T07:43:40.476Z","etag":null,"topics":["c","operating-system"],"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/ro-el-c.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-04-04T16:10:09.000Z","updated_at":"2024-03-14T09:34:00.000Z","dependencies_parsed_at":"2023-07-18T01:01:56.078Z","dependency_job_id":null,"html_url":"https://github.com/ro-el-c/OperatingSystem","commit_stats":null,"previous_names":["ro-el-c/operatingsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ro-el-c/OperatingSystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro-el-c%2FOperatingSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro-el-c%2FOperatingSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro-el-c%2FOperatingSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro-el-c%2FOperatingSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ro-el-c","download_url":"https://codeload.github.com/ro-el-c/OperatingSystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ro-el-c%2FOperatingSystem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262632322,"owners_count":23340213,"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","operating-system"],"created_at":"2024-12-04T05:11:01.102Z","updated_at":"2025-06-29T17:03:59.797Z","avatar_url":"https://github.com/ro-el-c.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OperatingSystem_Assignment\r\n### 2022 3-1 운영체제 프로그래밍 과제\r\n\r\n\u003e ### consumer-producer (=producer-consumer)\r\n\u003e\u003e Process 방식\r\n\u003e    - fork 로 자식 프로세스 하나 생성시킨 후, 두 프로세스 간의 pipe 기능을 통해 producer-consumer 구현\r\n\u003e\u003e Thread 방식\r\n\u003e    - pthread_create 로 thread 두 개(producer_thread, consumer_thread) 새로 생성시켜 두 thread 간에 전역변수를 통해 consumer-producer 구현\r\n\u003cbr\u003e\r\n\r\n---\r\n\r\n\u003cbr\u003e\r\n\r\n\u003e ### mutex_semaphore_producer-consumer\r\n\u003e  - pthread의 mutex 이용하여 circular buffer 운용 (counter 변수 이용)\r\n\u003e  - Buffer의 full/empty는 pthread의 semaphore 활용 (sem_init, sem_wait, sem_post)\r\n\u003e  - producer, consumer 쓰레드는 각각 5개 이상 동시 수행\r\n\u003e  - circular buffer 하나, 버퍼 크기 32 이하, 데이터 생성/소비 1000개 이상\r\n\u003e  - printf, sleep 적절히 사용 -\u003e 효과 보이도록","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fro-el-c%2Foperatingsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fro-el-c%2Foperatingsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fro-el-c%2Foperatingsystem/lists"}