Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondiff betwn child and worker thread? Pin
vikas amin30-Jan-06 1:37
vikas amin30-Jan-06 1:37 
AnswerRe: diff betwn child and worker thread? Pin
khan++30-Jan-06 2:06
khan++30-Jan-06 2:06 
AnswerRe: diff betwn child and worker thread? Pin
Vipin Aravind30-Jan-06 2:50
Vipin Aravind30-Jan-06 2:50 
GeneralRe: diff betwn child and worker thread? Pin
David Crow30-Jan-06 2:56
David Crow30-Jan-06 2:56 
GeneralRe: diff betwn child and worker thread? Pin
Eytukan30-Jan-06 3:05
Eytukan30-Jan-06 3:05 
GeneralRe: diff betwn child and worker thread? Pin
Maximilien30-Jan-06 3:27
Maximilien30-Jan-06 3:27 
GeneralRe: diff betwn child and worker thread? Pin
David Crow30-Jan-06 3:30
David Crow30-Jan-06 3:30 
AnswerRe: diff betwn child and worker thread? Pin
Prakash Nadar30-Jan-06 4:34
Prakash Nadar30-Jan-06 4:34 
vikas,

What are you working on? I have noticed that you have been posting very basic questions. one or two is fine, but you have posted many of them.

The questions you ask are generally asked my collage students, we can understand about them but you are a working professional working in Embin Technology.

You should really buy a good book and read it nicely and read it again so that you get good knowledge w.r.t windows development.

Take this as an advice, it will help you in your development career too.

coming to ur question,
Worker thread is (generally) a child thread of a process.

Windows actually has the concept of UI Thread (contains windows message queue and a message pump) and worker thread does not have a message queue.

Threads can be created using CreateThread(...) api, All threads that are created are always created as a worker thread i.e. no message queue, whenever someone posts a message to the thread or the thread creates a window, etc (anything that requires the thread to have a message queue) the message queue is created for the worker thread so effectivly the worker thread is now a UI Thread.

why windows does this?
Well the reason is very basic, to save memory, a worker thread which does not deal with any windows message do not need a message queue and so the memory is saved for the thread.


-Prakash
GeneralRe: diff betwn child and worker thread? Pin
Eytukan30-Jan-06 4:47
Eytukan30-Jan-06 4:47 
GeneralRe: diff betwn child and worker thread? Pin
Rage30-Jan-06 4:57
professionalRage30-Jan-06 4:57 
NewsRe: diff betwn child and worker thread? Pin
Laxman930-Jan-06 21:38
Laxman930-Jan-06 21:38 
QuestionControlling the main form in Borland C++? Pin
Priya..k30-Jan-06 1:32
Priya..k30-Jan-06 1:32 
AnswerRe: Controlling the main form in Borland C++? Pin
David Crow30-Jan-06 3:02
David Crow30-Jan-06 3:02 
AnswerRe: Controlling the main form in Borland C++? Pin
Prakash Nadar30-Jan-06 4:39
Prakash Nadar30-Jan-06 4:39 
QuestionOwner draw ListCtrl Pin
Patrick Markl30-Jan-06 1:04
Patrick Markl30-Jan-06 1:04 
QuestionDocument Conversion Pin
itbuff30-Jan-06 0:30
itbuff30-Jan-06 0:30 
AnswerRe: Document Conversion Pin
Sebastian Schneider30-Jan-06 1:17
Sebastian Schneider30-Jan-06 1:17 
QuestionOnNcCalcSize in CListBox Pin
Nishad S30-Jan-06 0:05
Nishad S30-Jan-06 0:05 
QuestionLoading an array inside a class.. Pin
Eytukan29-Jan-06 23:37
Eytukan29-Jan-06 23:37 
AnswerRe: Loading an array inside a class.. Pin
baldha rakesh29-Jan-06 23:58
baldha rakesh29-Jan-06 23:58 
GeneralRe: Loading an array inside a class.. Pin
Eytukan30-Jan-06 0:24
Eytukan30-Jan-06 0:24 
AnswerRe: Loading an array inside a class.. Pin
toxcct30-Jan-06 0:34
toxcct30-Jan-06 0:34 
GeneralRe: Loading an array inside a class.. Pin
Prakash Nadar30-Jan-06 0:38
Prakash Nadar30-Jan-06 0:38 
GeneralRe: Loading an array inside a class.. Pin
toxcct30-Jan-06 0:39
toxcct30-Jan-06 0:39 
GeneralRe: Loading an array inside a class.. Pin
Prakash Nadar30-Jan-06 0:41
Prakash Nadar30-Jan-06 0:41 

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.