From owner-freebsd-java Mon Jun 26 9:34:13 2000 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 59B6637BA4C for ; Mon, 26 Jun 2000 09:33:47 -0700 (PDT) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id KAA10047; Mon, 26 Jun 2000 10:33:43 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id KAA18872; Mon, 26 Jun 2000 10:33:43 -0600 (MDT) (envelope-from nate) Date: Mon, 26 Jun 2000 10:33:43 -0600 (MDT) Message-Id: <200006261633.KAA18872@nomad.yogotech.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Robert LaThanh Cc: freebsd-java@FreeBSD.ORG Subject: Re: FreeBSD+Java/Kaffe In-Reply-To: <3956EF8A.E3DD2826@pearlmagik.com> References: <3956EF8A.E3DD2826@pearlmagik.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > - 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