httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: Mpm maintenance thread hook
Date Mon, 04 Aug 2008 17:57:47 GMT
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

Mime
View raw message