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

Linux: client VM has some schedule problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.3.0
    • hotspot
    • linux-beta
    • x86
    • linux
    • Verified



      Name: kaC94536 Date: 05/21/2000



      The following test shows that method Thread.sleep() being run in separate
      thread does not work properly:

      ------------------------------ test.java ----------------------------

      import java.util.Date;

      class T extends Thread {

        public void run() {

          try {
      System.out.println(new Date());
      Thread.sleep(60000);
      System.out.println(new Date());
          } catch (Exception e) {
      System.out.println(e);
          }
        }
      }

      public class test {
        public static void main(String argv[]) {
          new T().start();
        }
      }

      ------------------------------- output ------------------------------

      linux-1$ java -hotspot -version
      java version "1.3.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b05)
      Java HotSpot(TM) Client VM (build 1.3.0beta-b03, mixed mode)
      linux-1$ java -hotspot test
      Sun May 21 09:13:50 GMT 2000
      Sun May 21 09:13:50 GMT 2000

      ----------------------------------------------------------------------

      The following JCT tests fail due to this bug:
      api/java_lang/Thread/isAlive01/isAlive0102/isAlive0102.html
      api/java_lang/Thread/join03/join0302/join0302.html
      api/java_lang/Thread/sleep01/sleep0103/sleep0103.html
      api/java_lang/Thread/sleep02/sleep0203/sleep0203.html

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

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

            hongzh Hong Zhang
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: