Ok now I understand what is happening, thanks for your answers guys.

 


________________________________
 From: Gert Doering <g...@greenie.muc.de>
To: ehsan enayati <ehsan_e...@yahoo.com> 
Cc: Gert Doering <g...@greenie.muc.de>; "openvpn-devel@lists.sourceforge.net" 
<openvpn-devel@lists.sourceforge.net> 
Sent: Tuesday, September 25, 2012 11:27 AM
Subject: Re: [Openvpn-devel] multi threading support
 
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

Reply via email to