This is a simple multithreaded chatroom implemented in C using sockets and pthreads.
Multiple clients can connect to a server and exchange messages in real time.
- Multi-client support using threads.
- Real-time messaging between clients.
- Thread synchronization using
pthread_mutex_t
. - Graceful exit when a client disconnects.
Open a terminal and run:
gcc server.c -o server -pthread
gcc client.c -o client -pthread