GitHub - akm19117012/Multithreaded-Server · GitHub
Skip to content

akm19117012/Multithreaded-Server

Folders and files

Repository files navigation

Multithreaded-Server (Group Chat)


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

How to Run Project

  1. This project can only be compiled in linux based os.
  2. Install gcc compiler if not already installed.
  3. Open terminal in current directory and compile files using following commands "gcc server.c -o server" and "gcc clinet.c -o client".
  4. After compiling open terminal and type "./server " to start server.(Replace with any port like "8989" or "4040" or any port of choice.)
  5. After starting server now we can start adding clients by opening terminal (and typing "./client ),here is same as mentioned in server.

Learnings...

  1. Concept of Threads and Multithreading - working with threads and concept of mutex
  2. Socket Programming - reading and writing data from server and client
  3. 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.

Resources

Multithreading in C, Threads, Multithreading in C++
Multithreading and Socket programming, Socket programming in C, Socket Programming in C


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages