This project aims to build a group chat application using Multithreading and Socket programming in C language.
A simple server without multithreading can only deal with one client at a time, but using multithreading we can hadle multiple clients at once.
By this once the server is active all the user can join the group and chat
- This project can only be compiled in linux based os.
- Install gcc compiler if not already installed.
- Open terminal in current directory and compile files using following commands "gcc server.c -o server" and "gcc clinet.c -o client".
- After compiling open terminal and type "./server " to start server.(Replace with any port like "8989" or "4040" or any port of choice.)
- After starting server now we can start adding clients by opening terminal (and typing "./client ),here is same as mentioned in server.
- Concept of Threads and Multithreading - working with threads and concept of mutex
- Socket Programming - reading and writing data from server and client
- How to deal with multiple client with the help of threads in such a way that their requested data do not clash with each other with the help of mutex.
Multithreading in C,
Threads,
Multithreading in C++
Multithreading and Socket programming,
Socket programming in C,
Socket Programming in C
