Share via


Multithreading Samples

MFC distinguishes two types of threads: worker threads and user-interface threads. A user-interface thread has its own message pump for handling user-interface events separately from other threads. A worker thread does not have its own message pump.

  • MTGDI illustrates the use of GDI resources with MFC objects.
  • MTMDI is a multithreaded version of the MDI sample. MTMDI illustrates user-interface threads.
  • MTRECALC illustrates a worker thread.
  • MUTEXES demonstrates the use of the CMutex class. The sample is an MFC version of a sample included in the book Advanced Windows by Jeffrey Richter, published by Microsoft Press.

See Also

MFC Samples | Categorical List of MFC Samples