[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: javahl without threads

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2005-03-01 00:35:51 CET

--On Saturday, February 26, 2005 11:47 PM +0800 Chia-liang Kao
<clkao@clkao.org> wrote:

> On Sat, Feb 26, 2005 at 04:46:34PM +0100, Patrick Mayweg wrote:
>> a threaded apr should be used for javahl, because java itself is
>> multithreaded and I need to synchronize some operations.
>> I will add that to the README file. On which platform apr is not
>> threaded?
>
> FreeBSD that is.

Some background on this: FreeBSD 5.3 has a working threaded system. Prior
to that, the FreeBSD threading API is unusable: httpd 2.x built with
threading MPMs would not serve pages reliably.

APR 1.0 and higher know that FreeBSD 5.3 is good and take advantage of
threading automatically. Note that the APR 0.9.x branch doesn't have the
logic to be aware of FreeBSD 5.3's threading capabilities.

However, if you are using FreeBSD 5.3 and APR 0.9.x (as bundled with httpd
2.0.53 or whatnot), you can pass --enable-threads to APR's configure if you
wish to override APR's failsafes.

And, as Patrick says, javahl without threads is badness as Java always
tries to emulate threads regardless of what the underlying OS does.

HTH. -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 1 00:37:26 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.