Skip to content

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.

License

Notifications You must be signed in to change notification settings

hootbu/Server-Client-Communication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

Screenshot from 2024-10-19 21-39-22

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages