Hi,

On Tue, Sep 25, 2012 at 12:22:40AM -0700, ehsan enayati wrote:
> I saw in the linux source code that it uses fork and pthread, i think that's 
> the way it handles multiple requests

Neither.

Fork() is used to, uh, fork other processes (for example to start scripts).

pthread is not used at all - there was some experimental code that used
multithreading to get crypto into its own thread, but that has been 
removed for 2.3 because it wasn't complete and didn't work.

Multiple requests are just queued in a, uh, "work queue" - which is
basically a glorified array of things-to-do - and then processed one
after another.

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: pgpeGmUa_RoTc.pgp
Description: PGP signature

Reply via email to