Skip to content

Implementation and testing of multiple server models that achieve high concurrency.

License

Notifications You must be signed in to change notification settings

Boooooots/server-client-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

server-client-model

Implementation and testing of multiple server models that achieve high concurrency.

Getting started

1.Clone the project

git clone https://github.com/Boooooots/server-client-model.git

2.Build

gcc client.c -o client
gcc server_poll.c -o sp
gcc server_multithread.c -o sm -lpthread

3.Run the multithread-server and clients

./sm
./client.sh 1

4.Run the poll-server and clients

./sp
./client.sh 1

Notes

1.client.sh : Start multiple clients base on first parameter value(1~1000). 2.The server address adapted to your local machine.

Performance Test

**Multithreaded server consume more memory and CPU resources than poll server. **

About

Implementation and testing of multiple server models that achieve high concurrency.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published