libgcj/13

Bryce McKinlay bryce@albatross.co.nz
Thu Mar 2 13:30:00 GMT 2000


The following reply was made to PR libgcj/13; it has been noted by GNATS.

From: Bryce McKinlay <bryce@albatross.co.nz>
To: John Stracke <francis@thibault.org>
Cc: tromey@cygnus.com, java-gnats@sourceware.cygnus.com
Subject: Re: libgcj/13
Date: Fri, 03 Mar 2000 10:24:06 +1300

 John Stracke wrote:
 
 > > 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.
 
 OK. Make sure you configure both libgcj and gcc with "--enable-threads=posix". If that
 doesn't work then it must be a bug in 2.95.2. It works fine for me here.
 
 regards
 
   [ bryce ]
 
 
 


More information about the Java-prs mailing list