References: <1348477246.32678.YahooMailNeo@...1765...> <20120924091835.GX742@...1296...> <1348557760.30714.YahooMailNeo@...1772...> <20120925075728.GD742@...1296...> Message-ID: <1348637046.97129.YahooMailNeo@...1772...> Date: Tue, 25 Sep 2012 22:24:06 -0700 (PDT) From: ehsan enayati In-Reply-To: <20120925075728.GD742@...1296...> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-83809723-1282801678-1348637046=:97129" Subject: Re: [Openvpn-devel] multi threading support Reply-To: ehsan enayati List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gert Doering Cc: "openvpn-devel@lists.sourceforge.net" ---83809723-1282801678-1348637046=:97129 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ok now I understand what is happening, thanks for your answers guys. =A0 ________________________________ From: Gert Doering To: ehsan enayati =20 Cc: Gert Doering ; "openvpn-devel@lists.sourceforge.net" <= openvpn-devel@lists.sourceforge.net>=20 Sent: Tuesday, September 25, 2012 11:27 AM Subject: Re: [Openvpn-devel] multi threading support =20 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 tha= t'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=20 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 --=20 USENET is *not* the non-clickable part of WWW! =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 //www.muc.de/~gert/ Gert Doering - Munich, Germany=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 gert@...1296... fax: +49-89-35655025=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 gert@...1186...= .1297...= ---83809723-1282801678-1348637046=:97129 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Ok now I understand what is happ= ening, thanks for your answers guys.

&n= bsp;


From: G= ert Doering <gert@...1296...>
To: ehsan enayati <ehsan_en85@...109...>
Cc: Gert Doering <gert@...1296...= >; "openvpn-devel@lists.sourceforge.net" <openvpn-devel@...1535...= orge.net>
Sent: Tu= esday, 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 thin= k 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 usedmultithreading to get crypto into its own thread, but that has been
r= emoved 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 g= lorified array of things-to-do - and then processed one
after another.
gert
--
USENET is *not* the non-clickable part of WWW!
&nbs= p;                     &n= bsp;                     =              =20 //www.muc.de/~gert/
Gert Doering - Munich, Germany      =                      = ; ge= rt@...1296...
fax: +49-89-35655025         =               gert@...1297...

= ---83809723-1282801678-1348637046=:97129--