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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b34
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: