[2755] in java-interest
Re: Bug in thread create / join ?
daemon@ATHENA.MIT.EDU (Thomas Ball)
Thu Oct 12 18:41:50 1995
Date: Thu, 12 Oct 1995 13:22:31 -0700
From: Thomas.Ball@Eng.Sun.COM (Thomas Ball)
To: rbk@ibeam.jf.intel.com
Cc: java-interest@java.Eng.Sun.COM
Definitely there's a bug here, but whether it's in NT or our use of NT
threads still needs to be determined. On Solaris I successfully ran
over 100000 threads before killing the test. (Proof that Solaris is
more studly than NT. :-) I'll see if BoundsChecker can find anything,
otherwise its code-review time. Thanks for reporting this.
Tom Ball
Java Products Group
> On my NT 3.51 system running java alpha3, the following code seems to always
> hang after a while:
>
> public class T16 implements Runnable
> {
> public static void main(String args[])
> {
> T16 inst = new T16();
> for (int i = 0; ; i++) {
> Thread t = new Thread(inst, ""+i);
> t.start();
> t.join();
> }
> }
>
> public void run()
> {
> System.out.println(Thread.currentThread().getName());
> }
> }
>
> I've had it go as few as 241 times, as many as 7500 (or so) times, but it
> always seems to hang. Am I doing something wrong, or is there a bug here?
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com