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 is LoadLibrary function returns?

7 Answers  


Have you ever used win32 APIs ?

4 Answers   Microsoft,


what if we provide two message handler for same message ?

1 Answers  


What is serialization ?which function is responsible for serializing data ?

5 Answers  


What function is used to disable a control at runtime?

7 Answers  






What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


Psychic Window Technique

2 Answers   E Logic, Wild Net,


In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,


1) create ToolTip in MFC?

2 Answers   HCL,


What is the difference between Synchronous sockets and asynchronous sockets?

2 Answers  


how many types of classes are ther,what are that

7 Answers   L&T,


Explain the flow of SDI application?

8 Answers   Mphasis,






Categories