Simon Gray writes:
Hi,
Been having a quick look through the 1.2x/2.x source code. Just a quick
question on the pop3d and imapd - why does it fork? why not use a thread or
select method instead?
Would of thought if it were to perhaps create a thread per request rather
than a process it should faster and more efficient by reducing the overhead?
http://www.dre.vanderbilt.edu/JAWS/research.html#adapt
(I know that's aimed more towards webservers, but the theory/strategy still
applies to concurrent connections.)
mind you in PgSQL creating new connection is a quite expensive thing.. else
think about a connection manager who has a bulk of them .. well you get the
drift. not too sure about mysql - never liked it.
l