Click here to Skip to main content
15,916,318 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA big Q Pin
keyto28-Nov-07 1:17
keyto28-Nov-07 1:17 
AnswerRe: A big Q Pin
CPallini28-Nov-07 2:24
mveCPallini28-Nov-07 2:24 
QuestionRe: A big Q Pin
David Crow28-Nov-07 3:01
David Crow28-Nov-07 3:01 
QuestionRe: A big Q Pin
Hamid_RT29-Nov-07 4:28
Hamid_RT29-Nov-07 4:28 
QuestionIOCP server Pin
Jhony george28-Nov-07 1:15
Jhony george28-Nov-07 1:15 
AnswerRe: IOCP server Pin
Cedric Moonen28-Nov-07 1:44
Cedric Moonen28-Nov-07 1:44 
QuestionRe: IOCP server [modified] Pin
Jhony george28-Nov-07 1:57
Jhony george28-Nov-07 1:57 
AnswerRe: IOCP server Pin
Cedric Moonen28-Nov-07 2:18
Cedric Moonen28-Nov-07 2:18 
Do you know what a thread is ? Do you understand that you need some resources to manage one single thread ? Do you also understand that switching between different threads take some time, so imagine what will happen if you have to switch between 10000 threads. Multithreading is achieved by time slicing: your processor will work on one thread for a small amount of time, then switch to another thread for another small amount of time and so on... So, guess what happens when you have 10000 threads ? Nothing works anymore because there are just too much threads to be handled.


D.Mani wrote:
What is the issue over here...


You are just asking too much from the system. There not enough memory to manage all the threads that you are creating. This should ring a bell that your design is just plain wrong.

Some people already told you that creating so many thread is a bad idea. Now you see the reason.


Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: IOCP server Pin
Jhony george28-Nov-07 2:26
Jhony george28-Nov-07 2:26 
GeneralRe: IOCP server Pin
Mark Salsbery28-Nov-07 5:32
Mark Salsbery28-Nov-07 5:32 
GeneralRe: IOCP server Pin
Mike Dimmick28-Nov-07 5:55
Mike Dimmick28-Nov-07 5:55 
GeneralRe: IOCP server Pin
Mark Salsbery28-Nov-07 6:08
Mark Salsbery28-Nov-07 6:08 
AnswerRe: IOCP server Pin
Mark Salsbery28-Nov-07 5:26
Mark Salsbery28-Nov-07 5:26 
AnswerRe: IOCP server Pin
Mike Dimmick28-Nov-07 5:43
Mike Dimmick28-Nov-07 5:43 
QuestionLPBITMAPINFOHEADER Pin
keyto28-Nov-07 0:49
keyto28-Nov-07 0:49 
AnswerRe: LPBITMAPINFOHEADER Pin
CPallini28-Nov-07 0:57
mveCPallini28-Nov-07 0:57 
AnswerRe: LPBITMAPINFOHEADER Pin
David Crow28-Nov-07 3:03
David Crow28-Nov-07 3:03 
QuestionHow to use VC++ Unit Test project to test C++ project Pin
lchild38528-Nov-07 0:09
lchild38528-Nov-07 0:09 
QuestionVC 2005 compiler error Pin
neha.agarwal2728-Nov-07 0:01
neha.agarwal2728-Nov-07 0:01 
AnswerRe: VC 2005 compiler error Pin
toxcct28-Nov-07 0:21
toxcct28-Nov-07 0:21 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 0:31
neha.agarwal2728-Nov-07 0:31 
GeneralRe: VC 2005 compiler error Pin
CPallini28-Nov-07 0:45
mveCPallini28-Nov-07 0:45 
GeneralRe: VC 2005 compiler error Pin
neha.agarwal2728-Nov-07 1:00
neha.agarwal2728-Nov-07 1:00 
GeneralRe: VC 2005 compiler error Pin
David Crow29-Nov-07 2:45
David Crow29-Nov-07 2:45 
GeneralI know... Pin
CPallini29-Nov-07 3:07
mveCPallini29-Nov-07 3:07 

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.