Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC Multithread question

MFC Multithread question

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++designdata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CNewbie
    wrote on last edited by
    #1

    This is my first crack at Multithreading and I am going to do it on MFC. I read that MFC has 2 types of threads (The User Interface Thread and The Worker Thread). Obvious one is for the GUI Message Queue and the other is for the programs internal Work. Now onto my question: 1). Since an MFC program already has a its main thread that does all the work when you open the program, could I just leave that as the GUI thread and make one more thread as the worker thread? Or Do I have to make one thread for each? Thanks

    P 1 Reply Last reply
    0
    • C CNewbie

      This is my first crack at Multithreading and I am going to do it on MFC. I read that MFC has 2 types of threads (The User Interface Thread and The Worker Thread). Obvious one is for the GUI Message Queue and the other is for the programs internal Work. Now onto my question: 1). Since an MFC program already has a its main thread that does all the work when you open the program, could I just leave that as the GUI thread and make one more thread as the worker thread? Or Do I have to make one thread for each? Thanks

      P Offline
      P Offline
      Paul Steane
      wrote on last edited by
      #2

      Just one extra thread as a worker thread is OK. I suggest you have a look at Joseph M. Newcomer's MVP pages, under "Threads and Processes" http://www.flounder.com/mvp_tips.htm[^]. Paul

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups