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

2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,


What is LoadLibrary function returns?

7 Answers  


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,


1)how to Display the File Dialog Box, in MFC ?

1 Answers  


What is the difference between OnInitialUpdate and OnUpdate?

5 Answers  






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

2 Answers   Patni,


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

1 Answers   HCL,


1)How to change the size of a button at run time ?

1 Answers  


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

2 Answers  


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


how to repaint when working with horizontal scroll bar

0 Answers  


What is a critical section and how is it implemented?

2 Answers  


Categories