What is the difference between workrer thread and UI thread
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Why Array Index starts from Zero
Have you ever used win32 APIs ?
what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?
What is the base class for MFC Framework ?
Difference between Debug and Release versions?
In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?
what is the size of a process
List out the parameters of WinMain Function.
What is stack size in win32 program?
1)does Frame Thickness in MFC?
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
what is message loop how mfc does it internally?