{"id":25062861,"url":"https://github.com/hootbu/server-client-communication","last_synced_at":"2025-07-21T20:36:41.046Z","repository":{"id":272769796,"uuid":"917700183","full_name":"hootbu/Server-Client-Communication","owner":"hootbu","description":"This project demonstrates multithreading with pthreads, process forking, and socket programming to create a synchronized server-client communication system. It ensures proper synchronization between threads using mutexes and condition variables.","archived":false,"fork":false,"pushed_at":"2025-01-16T14:07:42.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T17:13:41.523Z","etag":null,"topics":["c","fork","pid","socket-programming","threads"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hootbu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2025-01-16T13:40:46.000Z","updated_at":"2025-01-16T14:07:43.000Z","dependencies_parsed_at":"2025-01-16T15:07:28.642Z","dependency_job_id":null,"html_url":"https://github.com/hootbu/Server-Client-Communication","commit_stats":null,"previous_names":["hootbu/server-client-communication"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hootbu%2FServer-Client-Communication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hootbu%2FServer-Client-Communication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hootbu%2FServer-Client-Communication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hootbu%2FServer-Client-Communication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hootbu","download_url":"https://codeload.github.com/hootbu/Server-Client-Communication/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465216,"owners_count":20781914,"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","fork","pid","socket-programming","threads"],"created_at":"2025-02-06T17:13:49.507Z","updated_at":"2025-03-31T11:40:35.920Z","avatar_url":"https://github.com/hootbu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server \u0026 Client Communication\n###### Created by Emir Yorgun\n\nThis project demonstrates multithreading with **pthreads**, process **forking**, and **socket programming** to create **a synchronized** server \u0026 client communication system. It ensures proper synchronization between threads using mutexes and condition variables.\n\n------------\n- **Multithreading:** *Utilizes pthreads to create two threads that increment a shared variable A in a synchronized manner.*\n- **Process Forking:** *Demonstrates process creation using fork(), with separate execution paths for the parent and child processes.*\n-   **Socket Programming:** *Implements a server that listens for client connections, receives messages, and responds with the current value of A.*\n-   **Synchronization:** *Uses mutexes and condition variables to ensure proper synchronization between threads.*\n------------\n\n#### Running screenshot\n\n![Screenshot from 2024-10-19 21-39-22](https://github.com/user-attachments/assets/f15fdee6-aea5-4dee-91fe-bbf62b155902)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhootbu%2Fserver-client-communication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhootbu%2Fserver-client-communication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhootbu%2Fserver-client-communication/lists"}