Mladen Turk wrote:
Comments, other ideas?

I would prefer to not add a separate 'dedicated' thread, but just 'use' a worker thread, when it is about to idle instead. When you are about to go into the idle wait, check if there are any timed tasks that need to execute soon, and run that instead of going idle.

This is where I wanted to do with the (unfinished) Simple MPM... Have an API to schedule callbacks in the future, react to IO, or other events.

Rather than having dedicated threads for all of them, I wanted to use a single worker pool.

-Paul

Reply via email to