On Thursday Dec 14, 2000, Valerio Ferrucci wrote:
> "Rousseau, John" wrote:
>
> > libhpi.so is the threading package. The one in native_threads is the
> > LinuxThreads version. The one in green_threads (amazingly enough) is
> > the Green (Sun's all-user-space package) threads version.
>
> Which one have I to use? native or green?
> Where are the API of these two documented?
It depends on which threading model you want. You should probably
use whatever Apache is using.
> > Why does Apache "not like" modules using libpthreads.so? It probably
> > (very probably) uses it itself.
>
> I don't know why. If I link my module with pthreads, then Apache fails at
> startup time!
As far as I know, there can be only one threading package running in
a process at a time.
> > It's a very strange model in which Apache sends a request to your
> > module and you start up a VM to handle it. You probably should start
> > your VM as a seperate process and use a socket to communicate.
> >
>
> Do you think this is the only solution?
No. What you need to do is have the threading model that Apache is
using schedule in your threads to it's run queue. I don't think this
is possible with the Java VM (it wants to have control).
-John
----------------------------------------------------------------
John Rousseau [EMAIL PROTECTED]
SilverStream Software Phone: +1 978 262 3564
2 Federal Street Fax: +1 978 262 3499
Billerica, MA 01821 http://www.silverstream.com
----------------------------------------------------------------
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]