Click here to Skip to main content
15,904,287 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Why use Multi-thread Servers? Pin
Anders Molin18-Jul-03 13:39
professionalAnders Molin18-Jul-03 13:39 
Aidman wrote:
windows message-based notification of network events to serve connected users? What’s the point of using multiple threads in a server?

This is slooooow, and needs a Window which most servers dont have Wink | ;)

Aidman wrote:
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.

500 users at the same time on Win9x, interesting Wink | ;)

Aidman wrote:
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.

Normally I use asynchronous socket, or if on NT based systems, IO Completion Ports.
A limited number of threads is a good thing, it makes the application scale on multi-CPU computers, a single threaded server only uses a single CPU.

And also, when a thread is "suspended" when waiting for IO like disk or network activity, it's good to have extra threads to keep the processor(s) working (if there is work to do, of course)




- Anders

Money talks, but all mine ever says is "Goodbye!"
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 
GeneralRe: Flat dialog box Pin
David Crow21-Jul-03 2:11
David Crow21-Jul-03 2:11 

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.