|
From: Eduardo J. B. <ej...@ne...> - 2001-05-10 20:12:20
|
> In message <NEB...@ne...> you wrote: > [snip] > > > > > I wonder how all those linux daemons manage to setuid then? I'll > > > have to do > > > more research. > > > > Most daemons don't use multithreading... it's a headache for > both runtime > > quirks and portability. > > Sorry for going off topic, but what do they do then? That is > proxy/web type > daemons? > > [snip] Depends. Apache, for example, uses a fork-pool; a master daemon forks off the sub-servers and each handles some connections and then exit. The balancing is more complex, though (IPCs, etc). Squid, OTOH, uses a single process with a huge select loop and Async events and I/O. Basically, reinvents the scheduler. ;-) Most daemons use either fork-based single-threaded processes, or asynchronous handling thru selects. Regards, Ej. |