Click here to Skip to main content
15,920,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ComboBox Pin
Ryan Binns19-Jul-03 0:30
Ryan Binns19-Jul-03 0:30 
GeneralRe: ComboBox Pin
conio19-Jul-03 8:36
conio19-Jul-03 8:36 
GeneralRe: ComboBox Pin
Terry O'Nolley20-Jul-03 17:01
Terry O'Nolley20-Jul-03 17:01 
Generalmouseleave Pin
sdfdsfa18-Jul-03 16:50
sdfdsfa18-Jul-03 16:50 
GeneralRe: mouseleave Pin
J. Dunlap18-Jul-03 21:51
J. Dunlap18-Jul-03 21:51 
GeneralRe: mouseleave Pin
Ryan Binns19-Jul-03 0:35
Ryan Binns19-Jul-03 0:35 
GeneralRe: mouseleave Pin
shinay19-Jul-03 7:46
shinay19-Jul-03 7:46 
QuestionWhy use Multi-thread Servers? Pin
Aidman18-Jul-03 13:25
Aidman18-Jul-03 13:25 
Hi, all Smile | :)

I am planning on an http web server, and I have read some of the I/O completion and multithread server articles, but I really don’t understand why anyone would develop a multithread server? Would it just make it more difficult and slow, because of all the critical sections that have to be thread-safe? Why use worker threads that loops until a service is requested. Can’t you just use completion callback and windows message-based notification of network events to serve connected users? What’s the point of using multiple threads in a server?

My server is going to run on older windows versions (95/98/ME) so I have to handle the worker threads (if I should use them) and connection sockets by my self, and of course the server has to support at least 500 user connections simultaneously.

Anyway, I really don’t see any performance advantage by using multiple threads, so please tell me what I am missing because it seems like everyone is using it. Frown | :(

Thanks in advance


Aidman » over and out
AnswerRe: Why use Multi-thread Servers? Pin
Anders Molin18-Jul-03 13:39
professionalAnders Molin18-Jul-03 13:39 
AnswerRe: Why use Multi-thread Servers? Pin
Tim Smith18-Jul-03 13:50
Tim Smith18-Jul-03 13:50 
AnswerRe: Why use Multi-thread Servers? Pin
Aidman18-Jul-03 14:55
Aidman18-Jul-03 14:55 
GeneralRe: Why use Multi-thread Servers? Pin
Ilushka20-Jul-03 21:28
Ilushka20-Jul-03 21:28 
GeneralContext help button for CPropertySheet Pin
haritadala18-Jul-03 11:32
haritadala18-Jul-03 11:32 
GeneralRe: Context help button for CPropertySheet Pin
Ted Ferenc18-Jul-03 12:51
Ted Ferenc18-Jul-03 12:51 
GeneralRe: Context help button for CPropertySheet Pin
haritadala19-Jul-03 7:51
haritadala19-Jul-03 7:51 
GeneralRe: Context help button for CPropertySheet Pin
Ted Ferenc19-Jul-03 8:34
Ted Ferenc19-Jul-03 8:34 
GeneralRe: Context help button for CPropertySheet Pin
Andy Latham19-Sep-03 5:04
Andy Latham19-Sep-03 5:04 
GeneralFlat dialog box Pin
mfclearner18-Jul-03 10:05
mfclearner18-Jul-03 10:05 
GeneralRe: Flat dialog box Pin
David Crow18-Jul-03 10:35
David Crow18-Jul-03 10:35 
GeneralRe: Flat dialog box Pin
mfclearner18-Jul-03 10:50
mfclearner18-Jul-03 10:50 
GeneralRe: Flat dialog box Pin
David Crow18-Jul-03 10:53
David Crow18-Jul-03 10:53 
GeneralRe: Flat dialog box Pin
mfclearner18-Jul-03 12:09
mfclearner18-Jul-03 12:09 
GeneralRe: Flat dialog box Pin
sps-itsec4619-Jul-03 0:38
sps-itsec4619-Jul-03 0:38 
GeneralRe: Flat dialog box Pin
Ryan Binns19-Jul-03 0:51
Ryan Binns19-Jul-03 0:51 
GeneralRe: Flat dialog box Pin
Nish Nishant18-Jul-03 17:15
sitebuilderNish Nishant18-Jul-03 17:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.