https://github.com/hootbu/server-client-communication
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.
https://github.com/hootbu/server-client-communication
c fork pid socket-programming threads
Last synced: 11 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/hootbu/server-client-communication
- Owner: hootbu
- License: mit
- Created: 2025-01-16T13:40:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T14:07:42.000Z (over 1 year ago)
- Last Synced: 2025-02-06T17:13:41.523Z (over 1 year ago)
- Topics: c, fork, pid, socket-programming, threads
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server & Client Communication
###### Created by Emir Yorgun
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.
------------
- **Multithreading:** *Utilizes pthreads to create two threads that increment a shared variable A in a synchronized manner.*
- **Process Forking:** *Demonstrates process creation using fork(), with separate execution paths for the parent and child processes.*
- **Socket Programming:** *Implements a server that listens for client connections, receives messages, and responds with the current value of A.*
- **Synchronization:** *Uses mutexes and condition variables to ensure proper synchronization between threads.*
------------
#### Running screenshot
