title: c++ multithreaded task queue for scheduled tasks
body: <p>I need to develop a module which will execute scheduled tasks.<br>
  Each task is scheduled to be executed within X milliseconds.</p>
  
  <p>The module takes as a parameter an amount of worker threads to execute the tasks.<br></p>
  
  <p>The tasks are piled up in a queue which will probably be a priority queue, so a thread checks for the next-in-queue task (the one with the lowest "redemption" time), thus there's no need to iterate through all tasks each time.</p>
  
  <p>Is there any public library that does that or shall I roll my own?</p>
  
  <p>Note: I'm using VC2008 on Windows.</p>