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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.4

      Description

      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.


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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: