From avh@jakarta Fri Oct 6 11:19:52 1995
Date: Fri, 6 Oct 1995 11:19:26 -0700
From: avh@jakarta (Arthur van Hoff)
Subject: Bug in thread create / join ?
To: lindholm@jakarta, pavani@Eng
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Md5: Jwrkam7k9j+8XTqqTAz/8Q==
------------- Begin Forwarded Message -------------
From ###@###.### Fri Oct 6 10:50:41 1995
To: java-interest@java
From: Bob Beck <###@###.###>
Subject: Bug in thread create / join ?
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?
--
Bob Beck ###@###.### CompuServe: 71674,106
Intel Corporation (503)264-8856 AOL: RDBeck
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to ###@###.###
------------- End Forwarded Message -------------
Date: Fri, 6 Oct 1995 11:19:26 -0700
From: avh@jakarta (Arthur van Hoff)
Subject: Bug in thread create / join ?
To: lindholm@jakarta, pavani@Eng
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Md5: Jwrkam7k9j+8XTqqTAz/8Q==
------------- Begin Forwarded Message -------------
From ###@###.### Fri Oct 6 10:50:41 1995
To: java-interest@java
From: Bob Beck <###@###.###>
Subject: Bug in thread create / join ?
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?
--
Bob Beck ###@###.### CompuServe: 71674,106
Intel Corporation (503)264-8856 AOL: RDBeck
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to ###@###.###
------------- End Forwarded Message -------------
- relates to
-
JDK-1230203 Win32 only: Thread.join() doesn't if there are multiple threads.
- Closed