libgcj/13
John Stracke
francis@thibault.org
Thu Mar 2 12:50:00 GMT 2000
The following reply was made to PR libgcj/13; it has been noted by GNATS.
From: John Stracke <francis@thibault.org>
To: Bryce McKinlay <bryce@albatross.co.nz>
Cc: tromey@cygnus.com, java-gnats@sourceware.cygnus.com
Subject: Re: libgcj/13
Date: Thu, 02 Mar 2000 15:51:16 -0500
Bryce McKinlay wrote:
> Even though 2.95.1 is our most recent release, it is very outdated. There are many
> fixes relating to threads and gc in libgcj cvs and snapshot releases. So far we
> havn't been able to do a new release because it depends on changes in the compiler.
>
> Try a snapshot from ftp://sourceware.cygnus.com/pub/java/snapshot
Thanks, I will.
> I don't see what the problem is here. Are you expecting the application to shut down
> when main() returns?
No, the problem is that the println() doesn't execute until after run() finishes. The
order of operations should be "create thread t, t goes to sleep for 100 seconds, main
thread does println(), eventually t wakes up and the program exits"; instead, it's
"create thread t, t goes to sleep for 100 seconds, t wakes up and terminates, main
thread does println() and the program exits". In essence, there's no multithreading
going on at all.
--
/==============================================================\
|John Stracke | http://www.thibault.org |S/MIME, HTML OK|
|Francois Thibault |=========================================|
|Bhakail, East |"We can't duplicate the bug." "Have you |
|francis@thibault.org|tried the Xerox machine?" |
\==============================================================/
More information about the Java-prs
mailing list