Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2000 10:33:43 -0600 (MDT)
From:      Nate Williams <nate@yogotech.com>
To:        Robert LaThanh <hybrid@pearlmagik.com>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: FreeBSD+Java/Kaffe
Message-ID:  <200006261633.KAA18872@nomad.yogotech.com>
In-Reply-To: <3956EF8A.E3DD2826@pearlmagik.com>
References:  <3956EF8A.E3DD2826@pearlmagik.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>   - Multithreading does not work (for me) in the Java 1.1.8 port

It works fine.  I've run applications with thousands (yes thousands) of
threads on FreeBSD w/out any problems.  However, it will 'hang' if you
read from the console (until the read completes) since the JVM does not
use kernel threads.

>   - Since the port does not have a JIT, you should have links to the TYA
> and ShuJIT on the distrobution pages
>   - Have a link (or more) that Kaffe is a good alternative Java VM (for
> now)!!!!!!

Kaffe has never worked reliably for me ever, and I've attempted to use
almost every version.

> I say this because I have a program that I wrote in Java tcp-based
> server that is multithreaded.

JDK1.1.8 should work well.  My application makes heavy use of sockets
(see above), and socket's work well in multi-threaded applications if
they are written correctly.
> 2) Next problem I encountered was that Java 1.1.8 was giving me the
> libc.so.3 file not found. After searching around, i determined that
> FreeBSD 3.x compatibility is a dependancy
> 3) Once I tried running my program on 1.1.8, I find that none of the
> other threads run.

The 'thread' that is hanging the program is probably trying to do
console input.  You can't do console I/O in FreeBSD's thread and expect
other threads to run.

> So, I install the Kaffe 1.0.5 port, and it works.

I'm *very* *very* *very* suprised that Kaffe would work, since Kaffe
doesn't use kernel threads either.  My guess is that somehow the
internals are slightly different, or how you're doing inter-thread
communications (in essence, how you make threads go and stop) is
slightly different from what the Sun JVM expects.



Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006261633.KAA18872>