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

how many types of classes are ther,what are that

7 Answers   L&T,


What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


How to handle command line arguements from simple MFC application ?

2 Answers   TCS,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


What is the base class for MFC Framework ?

4 Answers  






What are the special requirements for dialog box resources used in a form view?

2 Answers  


what is message Testing ?

1 Answers   L&T,


How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it

8 Answers  


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

4 Answers   Microsoft,


What is difference between the TCP/IP and UDP socket

5 Answers   Invensys,


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   Siemens, Symphony,


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

5 Answers   Wipro,


Categories