Network Sockets, Threading or select for multiple concurrent connections
The purpose of the thesis is to present a foundation for selecting an appropriate model while building a concurrent network server, focusing on a comparison between a select() based server and one thread for each connection. The test conducted herein is based two echo servers ( the message sent is e...
Main Author: | |
---|---|
Format: | Others |
Language: | English |
Published: |
Blekinge Tekniska Högskola, Avdelningen för för interaktion och systemdesign
2008
|
Subjects: | |
Online Access: | http://urn.kb.se/resolve?urn=urn:nbn:se:bth-5501 |
id |
ndltd-UPSALLA1-oai-DiVA.org-bth-5501 |
---|---|
record_format |
oai_dc |
spelling |
ndltd-UPSALLA1-oai-DiVA.org-bth-55012018-01-12T05:14:01ZNetwork Sockets, Threading or select for multiple concurrent connectionsengFranzén, NicklasBlekinge Tekniska Högskola, Avdelningen för för interaktion och systemdesign2008NetworkSocketSelectThreadsComputer SciencesDatavetenskap (datalogi)The purpose of the thesis is to present a foundation for selecting an appropriate model while building a concurrent network server, focusing on a comparison between a select() based server and one thread for each connection. The test conducted herein is based two echo servers ( the message sent is echoed back to the sender ) and the time they take to serve a number of clients. The programs written for it are run on both Windows and Linux to show if the choice of platform affects the methods efficiency. Also looking at the return time of select() when we have a number of sockets, as well the time it takes to create a set number of threads. The conclusion drawn in this thesis is that for up to 512 sockets there is really no significant difference in the time it takes for the test program to return, this was true for both the Windows and the Linux test. Note however that the threading implementation requires much more memory than the select based one. So in the end it is basically up to personal preferences. E-Mail: Nicklas.Franzen@gmail.com Mobile: 0703-506904Student thesisinfo:eu-repo/semantics/bachelorThesistexthttp://urn.kb.se/resolve?urn=urn:nbn:se:bth-5501Local oai:bth.se:arkivex68EB576AFCDCA17DC125745F004057E3application/pdfinfo:eu-repo/semantics/openAccess |
collection |
NDLTD |
language |
English |
format |
Others
|
sources |
NDLTD |
topic |
Network Socket Select Threads Computer Sciences Datavetenskap (datalogi) |
spellingShingle |
Network Socket Select Threads Computer Sciences Datavetenskap (datalogi) Franzén, Nicklas Network Sockets, Threading or select for multiple concurrent connections |
description |
The purpose of the thesis is to present a foundation for selecting an appropriate model while building a concurrent network server, focusing on a comparison between a select() based server and one thread for each connection. The test conducted herein is based two echo servers ( the message sent is echoed back to the sender ) and the time they take to serve a number of clients. The programs written for it are run on both Windows and Linux to show if the choice of platform affects the methods efficiency. Also looking at the return time of select() when we have a number of sockets, as well the time it takes to create a set number of threads. The conclusion drawn in this thesis is that for up to 512 sockets there is really no significant difference in the time it takes for the test program to return, this was true for both the Windows and the Linux test. Note however that the threading implementation requires much more memory than the select based one. So in the end it is basically up to personal preferences. === E-Mail: Nicklas.Franzen@gmail.com Mobile: 0703-506904 |
author |
Franzén, Nicklas |
author_facet |
Franzén, Nicklas |
author_sort |
Franzén, Nicklas |
title |
Network Sockets, Threading or select for multiple concurrent connections |
title_short |
Network Sockets, Threading or select for multiple concurrent connections |
title_full |
Network Sockets, Threading or select for multiple concurrent connections |
title_fullStr |
Network Sockets, Threading or select for multiple concurrent connections |
title_full_unstemmed |
Network Sockets, Threading or select for multiple concurrent connections |
title_sort |
network sockets, threading or select for multiple concurrent connections |
publisher |
Blekinge Tekniska Högskola, Avdelningen för för interaktion och systemdesign |
publishDate |
2008 |
url |
http://urn.kb.se/resolve?urn=urn:nbn:se:bth-5501 |
work_keys_str_mv |
AT franzennicklas networksocketsthreadingorselectformultipleconcurrentconnections |
_version_ |
1718607003063943168 |