how does the UIThread and worker thread communicates and
handle events

Answers were Sorted based on User's Feedback



how does the UIThread and worker thread communicates and handle events..

Answer / vikram

UI thread and Worker thread can communicate with each other using SendMessage() or PostMessage().SendMessage() returns when the message is used by the Thread. PostMessage Returns immediately. These two method require Window handle of the UI Thread.

One can also use PostThreadMessage(thread id, message).here UI thread id is required.

Is This Answer Correct ?    0 Yes 0 No

how does the UIThread and worker thread communicates and handle events..

Answer / vishnu

Worker threads are used to process in back and can not
modify any user interface directly.
Ex: Used to calculate some complicated calculations.

UI threads can change user interface directly
Ex: Used to change UI display images in windows MFC
application

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More MFC Interview Questions

What are the special requirements for dialog box resources used in a form view?

2 Answers  


What is CArchive class dowes?

4 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


Can you explaing the relashionship between document,frame and view ?

2 Answers  


Explain StretchBlt and BitBlt

1 Answers  






How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

0 Answers  


What is a critical section and how is it implemented?

2 Answers  


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


What is subclassing?

2 Answers  


How can server communicate with more than one client

2 Answers   Invensys,


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


Categories