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

(thread) Thread.sleep(millis, nanos) should not return early

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      Thread.sleep(millis,nanos) might possibly return before
      the specified time has elapsed, if nanos < 500,000, because
      in that case it rounds down to the nearest millis.

      Regardless of whether this behavior is strictly speaking permitted by
      the specification, the implementation should "at least" make a "best effort"
      to ensure that "at least" the specified time has elapsed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              martin Martin Buchholz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: