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. thread pool

thread pool

Scheduled Pinned Locked Moved C / C++ / MFC
jsontutorialquestion
5 Posts 4 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.
  • J Offline
    J Offline
    Jhony george
    wrote on last edited by
    #1

    hai, i want to create a thread pool which is having atleast 10 threads, Normally we are creating threads using Createthread()API, But how to create pool..and all...? is any body knows reply me... Thanks. Mani

    Born to win...!

    S R 2 Replies Last reply
    0
    • J Jhony george

      hai, i want to create a thread pool which is having atleast 10 threads, Normally we are creating threads using Createthread()API, But how to create pool..and all...? is any body knows reply me... Thanks. Mani

      Born to win...!

      S Offline
      S Offline
      Stephen Hewitt
      wrote on last edited by
      #2

      You could consider using Win32's thread pooling[^] functions.

      Steve

      J 1 Reply Last reply
      0
      • J Jhony george

        hai, i want to create a thread pool which is having atleast 10 threads, Normally we are creating threads using Createthread()API, But how to create pool..and all...? is any body knows reply me... Thanks. Mani

        Born to win...!

        R Offline
        R Offline
        Rajasekharan Vengalil
        wrote on last edited by
        #3

        See QueueUserWorkItem[^].

        -- gleat http://blogorama.nerdworks.in[^] --

        1 Reply Last reply
        0
        • S Stephen Hewitt

          You could consider using Win32's thread pooling[^] functions.

          Steve

          J Offline
          J Offline
          Jhony george
          wrote on last edited by
          #4

          hai.. thanks for reply, one doubt....is IOCP method is like a thread pool method...or...what? if i am using an IOCP method any thread pool will get create..? or...?how it is..? could u pls tell me short and sweet...

          Born to win...!

          M 1 Reply Last reply
          0
          • J Jhony george

            hai.. thanks for reply, one doubt....is IOCP method is like a thread pool method...or...what? if i am using an IOCP method any thread pool will get create..? or...?how it is..? could u pls tell me short and sweet...

            Born to win...!

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            D.Mani wrote:

            if i am using an IOCP method any thread pool will get create..?

            With IOCP, you are responsible for creating a pool of threads. Any thread waiting on GetQueuedCompletionStatus() is part of the IOCP's "thread pool". Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            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