Click here to Skip to main content
15,925,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiple thread pool Pin
manish.patel19-Nov-07 0:27
manish.patel19-Nov-07 0:27 
GeneralRe: Multiple thread pool Pin
Cedric Moonen19-Nov-07 1:08
Cedric Moonen19-Nov-07 1:08 
AnswerRe: Multiple thread pool Pin
Cedric Moonen19-Nov-07 1:06
Cedric Moonen19-Nov-07 1:06 
GeneralRe: Multiple thread pool Pin
Jhony george19-Nov-07 1:16
Jhony george19-Nov-07 1:16 
GeneralRe: Multiple thread pool Pin
Cedric Moonen19-Nov-07 1:20
Cedric Moonen19-Nov-07 1:20 
GeneralRe: Multiple thread pool Pin
Jhony george19-Nov-07 1:33
Jhony george19-Nov-07 1:33 
GeneralRe: Multiple thread pool Pin
led mike19-Nov-07 4:25
led mike19-Nov-07 4:25 
AnswerRe: Multiple thread pool Pin
Mark Salsbery19-Nov-07 6:55
Mark Salsbery19-Nov-07 6:55 
How many processors does your server have?

500 threads is a huge waste of resources on a machine with say, 4 processors.

See Tip #2 here: INFO: Design Issues When Using IOCP in a Winsock Server[^]

You should be able to handle thousands of connections with at most, a couple threads
per CPU.

Regardless, IOCPs don't have multiple thread pools.  The thread pool size is
determined by how many threads you have waiting on GetQueuedCompletionStatus().

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: Multiple thread pool Pin
Mark Salsbery19-Nov-07 7:05
Mark Salsbery19-Nov-07 7:05 
QuestionAdd Menu Dynamically Pin
paresh_joe18-Nov-07 23:01
paresh_joe18-Nov-07 23:01 
AnswerRe: Add Menu Dynamically Pin
Hamid_RT18-Nov-07 23:16
Hamid_RT18-Nov-07 23:16 
QuestionOpen a word file from a web folder Pin
arslanjatt18-Nov-07 22:46
arslanjatt18-Nov-07 22:46 
AnswerRe: Open a word file from a web folder Pin
Jhony george18-Nov-07 23:29
Jhony george18-Nov-07 23:29 
GeneralRe: Open a word file from a web folder Pin
arslanjatt18-Nov-07 23:34
arslanjatt18-Nov-07 23:34 
Questionan link error Pin
richardye18-Nov-07 22:38
richardye18-Nov-07 22:38 
AnswerRe: an link error Pin
baerten18-Nov-07 23:14
baerten18-Nov-07 23:14 
GeneralRe: an link error Pin
CPallini18-Nov-07 23:22
mveCPallini18-Nov-07 23:22 
AnswerRe: an link error [modified] Pin
CPallini18-Nov-07 23:15
mveCPallini18-Nov-07 23:15 
GeneralRe: an link error Pin
toxcct18-Nov-07 23:18
toxcct18-Nov-07 23:18 
GeneralRe: an link error Pin
CPallini18-Nov-07 23:30
mveCPallini18-Nov-07 23:30 
QuestionA Question about API related to Registry Pin
Mushtaque Nizamani18-Nov-07 22:29
Mushtaque Nizamani18-Nov-07 22:29 
AnswerRe: A Question about API related to Registry Pin
Jhony george18-Nov-07 23:23
Jhony george18-Nov-07 23:23 
AnswerRe: A Question about API related to Registry Pin
SnaKeBeD18-Nov-07 23:36
SnaKeBeD18-Nov-07 23:36 
GeneralRe: A Question about API related to Registry Pin
Mushtaque Nizamani19-Nov-07 0:45
Mushtaque Nizamani19-Nov-07 0:45 
AnswerRe: A Question about API related to Registry Pin
krmed19-Nov-07 0:45
krmed19-Nov-07 0:45 

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.