Doug MacEachern wrote:

> On Wed, 17 Oct 2001, Vivek Khera wrote:
> 
> 
>>>>>>>"DM" == Doug MacEachern <[EMAIL PROTECTED]> writes:
>>>>>>>
>>DM> first-in or first-putback first-out.
>>
>>First-in is different than first-putback. 
>>
> 
> right and the interpreter pool does both.  when you request an interpreter
> you might get one that's never been used (first-in) or you might get one
> that has been used and putback at the head of the list (first-putback).
> 
> 
>>First-putback seems to me to be last-in.
>>
> 
> then its both fifo and lifo, which is why i don't think it can be called
> either.

I think I understand what you mean. Please correct me if I'm wrong:

threaded mpm:
   1. First the pool gets initialized, and the interpreters are pulled 
from the head (while they were put at the tail while being created). 
That's FIFO.
   2. Once the interpreters are being used they are taken from the head 
and putback to the head of the queue. That's LIFO.

prefork mpm:
   As with 1.x the roundrobin rotation of the processes is used. (but if 
I remember correctly on some platforms it wasn't a round robin.)

of course if there is a mix of threads and processes, the two apply: 
processes are rotated with round robin, threads inside the processes as 
described above for threaded mpm.

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to