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

ScheduledExecutorService does not work as expected in jdk7/6/5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 7
    • 7
    • core-libs
    • b34
    • x86
    • windows_xp
    • Verified

        ScheduledExecutorService does not work as we expect.

        The test programs schedules the execution of MyTask().
        --
        When Mytask() is scheduled in scheduleWithFixedDelay() as follows,
         -initialDelay is 0 : Execute right now
         -delay is 1000[msec] : Execute every 1000[msec]
        the MyTask() sometimes is not executed.
        Initial execution of MyTask() is not executed and scheduled MyTask() is not executed also.

        CONFIGURATION:
        OS : WindowsXP(SP2,Japanese)
        JRE/JDK : jdk7b30/jdk6u7/jdk5u16

        Note:
         The reporter says, this occus in RHEL(x86) and submitter confirms this problem occurs in Solaris10.

        FREQUENCY:
         The problem can be reproducible so often.
        The test program sometimes finishes correctly.

        EXPECTED:
         The followings message will shows up.

        ACTUAL:
         No message. The execution seems hang.

              chegar Chris Hegarty
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: