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

(thread spec) Thread.join() description of time to wait is misleading

XMLWordPrintable

    • sparc
    • solaris_2.4

      Name: akC45999 Date: 04/27/98



      Description of java.lang.Thread.join() reads:
      ...
      Waits at most millis milliseconds for this thread to die
      ...

      I belive it should read:
      ...
      Waits at least millis milliseconds etc.
      ...

      This is why:
      1. if the description were true, then a JVM could
      wait zero time and still be conformant. Such implementation is useless.
      2. No implementation can guarantee that a thread would resume execution
      within a given period of time (one must add the time the thread waits
      for a free processor), so the description is unimplementable.


      ======================================================================

            chegar Chris Hegarty
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: