Thread: Thread Pool libraries or examples

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Codebot
    Join Date
    Jun 2004
    Location
    Toronto
    Posts
    195

    Thread Pool libraries or examples

    I'm trying to utilize multi core technology as much as possible by throwing small, repetitive tasks onto a thread. When I read about this way of doing things, the thing that people referenced was a thread pool. Does anyone know any open source libraries, examples, or tutorials on how to write your own thread pooling architecture. I'm assuming its very easy, all you need is a queue and a bunch of worker threads and some sort of generic interface to access and process data.


    EDIT: I am developing this on a win32 box, but generic examples are welcome (ie. one that uses boost or vanilla win32 thread calls).
    Last edited by Mastadex; 08-23-2008 at 07:47 AM.
    Founder and avid member of the Internationsl Typo Associateion

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Terminating secondary thread from another thread
    By wssoh85 in forum C++ Programming
    Replies: 13
    Last Post: 12-19-2008, 05:14 AM
  2. Thread Prog in C language (seg fault)
    By kumars in forum C Programming
    Replies: 22
    Last Post: 10-09-2008, 01:17 PM
  3. pointer to main thread from worker thread?
    By draegon in forum C++ Programming
    Replies: 2
    Last Post: 10-27-2005, 06:35 AM
  4. Critical Sections, destroying
    By Hunter2 in forum Windows Programming
    Replies: 4
    Last Post: 09-02-2003, 10:36 PM
  5. Creating a thread -- Passing it a function
    By cjschw in forum C++ Programming
    Replies: 0
    Last Post: 08-05-2003, 02:46 PM