What types of threads are supported by MFC ? How they can be created ?what is the difference between them?

1. Worker Threads.
Provide only background processing. Doesn’t handle messages.
Creation: By calling AfxBeginThread() and providing a global function as a parameter.
2 UI Threads.
These threads have the UI (Window) and can process the messages, i.e. user interaction (I/O) with window.
Creation: By calling AfxBeginThread() and providing a class which is derived from CWinThread and implements all message handling mechanism as a parameter.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>