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. how to design muti thread program in VC++

how to design muti thread program in VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++designtutorial
3 Posts 3 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    i want to make one project of Multi-Threading involve.so first i want to design my program. i dont know how to design source code.plz tell me how to design

    A R 2 Replies Last reply
    0
    • A Anonymous

      i want to make one project of Multi-Threading involve.so first i want to design my program. i dont know how to design source code.plz tell me how to design

      A Offline
      A Offline
      Arman S
      wrote on last edited by
      #2

      There is no special pattern to design the source code of threading stuff. But it strictly depends on the type of threads you want to implement. A UI thread is represented by a C++ class derived from CWinThread. A worker thread is reperesented by a controlling function like this: UINT MyThreadProc(PVOID pParam); I usually create two files Thread.h and Thread.cpp and put the worker threads there; in Thread.h I put declarations and in Thread.cpp definations of controlling functions. Though this standard is not strictly necessary. You also may use worker threads in a class. In this case the controlling function must be a static member-function of that class. ... Try to specify your Q. -- ====== Arman

      1 Reply Last reply
      0
      • A Anonymous

        i want to make one project of Multi-Threading involve.so first i want to design my program. i dont know how to design source code.plz tell me how to design

        R Offline
        R Offline
        Rage_bla
        wrote on last edited by
        #3

        Parallel and Distributed Programming Using C++, Cameron Hughes, Tracey Hughes[^] The title fits the description of what you're looking for ;), I didn't read it yet, but I intent to :) There are more book on the subject, just look through online book stores

        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