Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 serialization ?which function is responsible for serializing data ?

5 Answers  


Does the application have more than one object? If Yes, Briefly explain.

2 Answers   Soltius Infotech,


What is the initial function to be called in MFC and what it will do

11 Answers   Infosys,


What are the types of button controls?

10 Answers  


What is document-view architecture ? Give me one real time example for SDI ?

2 Answers  


List out the parameters of WinMain Function.

2 Answers   Mphasis,


Given two processes, how can they share memory?

2 Answers   Microsoft,


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

0 Answers  


What is thread & process?

15 Answers   Exaband,


If there is more than 100 control in a window how we can change the Taborder of a controls

4 Answers   Satyam,


What interface must be supported by an ActiveX control?

2 Answers  


what is the use of CCmdTarget?

4 Answers   Siemens,


Categories