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

Tell me the different controls in MFC ?

5 Answers  


how do u identify RTTI in vc++

4 Answers   Siemens,


List out the basic features of MFC.

4 Answers   Mphasis,


What is the difference between Struts and JSF? Pls list some most suitable differences.

0 Answers  


How we call a dialog in another dialog?

2 Answers  






What is the use of UpdateData funciton ?

7 Answers  


What?s the difference between Modal and Modeless Dialog?

12 Answers   Usl India, Jekson,


what is message Testing ?

1 Answers   L&T,


What is Multithreading

1 Answers   Invensys,


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


How to handle command line arguements from simple MFC application ?

2 Answers   TCS,


if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first

10 Answers   Symphony, Siemens,






Categories