Subject: Re: FD_LOCK, pthreads and drivers
To: mike varga <mike.varga@cavium.com>
From: Thor Lancelot Simon <tls@rek.tjls.com>
List: tech-kern
Date: 09/14/2001 09:53:54
On Thu, Sep 13, 2001 at 03:33:58PM -0700, mike varga wrote:
> Your right, I did send this to the 
> wrong list. I have written the 
> driver for FreeBSD, but I also
> wrote one for OpenBSD, which
> I think is much closer to NetBSD
> than FreeBSD. I will eventually 
> also port it to NetBSD.
> 
> I do not have that option of
> writing the application with
> multi-processes instead of threads.
> 
> I am using Apache and I am 
> accelerating the OpenSSL crypto
> calls. Apache is multi-threaded.

Perhaps parts of apache _can_ be multithreaded, but certainly
it is not the case that Apache is inherently incompatible with
a multi-process programming model; in fact, by default Apache
spawns a large number of processes to handle requests in
parallel.

Do you mean that the OpenSSL library you're working with has been
built with thread support?  It's also possible to not do that.

Thor