Skip to content

majidalykhan/client-server-chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

client-server-chatroom

Description
In this project, we have studied the synchronization problems, filing, threading and inter-process communication. We have implemented a server program and a client program. Server was responsible for getting requests from client and processing them. We used a shared memory to implement the communication between client programs and the server program. We achieved to solve the problem by using semaphores. Both the client and server programs lock the critical sections before they use and unlocks after being used. We have implemented filing so messages of server and client are saved at runtime.

Language
Linux C Programming

How to Run in Linux In terminal
Write Command: gcc -lpthread -o s server.c (For Server), gcc -lpthread -o c client.c (For Client)

Output
output