Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8305092 Improve Thread.sleep(millis, nanos) for sub-millisecond granularity
  3. JDK-8306660

Release Note: `Thread.sleep(millis, nanos)` Is Now Able to Perform Sub-Millisecond Sleeps

XMLWordPrintable

      The `Thread.sleep(millis, nanos)` method is now able to perform sub-millisecond sleeps on POSIX platforms. Before this change, a non-zero `nanos` argument would round up to a full millisecond. While the precision is improved on most POSIX systems, the actual sleep duration is still subject to the precision and accuracy of system facilities.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: