What is the difference between workrer thread and UI thread

Answers were Sorted based on User's Feedback



What is the difference between workrer thread and UI thread..

Answer / mano

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 ?    16 Yes 1 No

What is the difference between workrer thread and UI thread..

Answer / shakuntala

User-interface threads are commonly used to handle user input and respond to events and messages generated by the user. Worker threads are commonly used to complete tasks, such as recalculation, that do not require user input.
The Win32 API does not distinguish between types of threads; it just needs to know the thread's starting address so it can begin to execute the thread. MFC handles user-interface threads specially by supplying a message pump for events in the user interface. CWinApp is an example of a user-interface thread object, because it derives from CWinThread and handles events and messages generated by the user.

Is This Answer Correct ?    3 Yes 0 No

What is the difference between workrer thread and UI thread..

Answer / muhammad iqbal nayyar

User Interface Thread has its on message pump.
   it can implement Message Map and Message handler...

Worker Thread does not have its own message pump.
  worker Thread just work on given function

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More MFC Interview Questions

1)How to change a text of a button as Dynamically?

1 Answers   HCL,


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


What is subclassing?

2 Answers  


What does mfc stand for?

1 Answers  


what is the difference between compiling and building?

1 Answers  


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

5 Answers   Wipro,


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


How to create a Modeless Dialog?

5 Answers  


1)How to change a text of a button in runtime?

2 Answers  


how does conditionally close the Dialog Box ?

2 Answers   Infotech,


how u can move CDC pointer to one line in cview?

2 Answers  


Explain Doc/View architecture

6 Answers   Huawei,


Categories