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

java.lang.Thread.sleep(millis, nanos) sleeps less than specified.

XMLWordPrintable

    • x86
    • windows_95

      jdk1.2.2T on Windows95 fails JCK1.2 test

      api/java_lang/Thread/sleep02/sleep0201/sleep0201.html

      (sleep0201.java 1.4 98/08/31 with bug 4166410 fixed).

      with following test output:

      test result: Failed. sleep(100,3162) actually sleeped only 100000000 nsec

      The test already assumes that clock accuracy on windows95 is 50 ms and
      adds 50 ms to the period of time before and after the call to sleep(,).

      So the diagnostics means that sleep(100,3162) actually sleeped some
      time which is strictly less than 100000000 nsec while it should sleep at least
      100003162 ns.


            jjb Josh Bloch
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: