Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1223814

thread join does not seem to work after a while

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 1.0.2
    • 1.0
    • core-libs
    • 1.0.2
    • sparc
    • generic
    • Not verified

    Description

      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 -------------

      Attachments

        Issue Links

          Activity

            People

              dconnellsunw David Connelly (Inactive)
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: