Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2932

Timer tasks don't need to run in separate threads

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.5.0, 5.4.10
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      TimeScheduler3 runs tasks in separate threads if task.can_block is set to true.
      However, if a task sends a message, then it can never block if (default) bundler PerDestinationBundler or TransferQueueBundler is used. (NoBundler is not recommended anymore).

      Todo: look at the tasks run by TimeScheduler3: in most cases (a message is sent), a task can be run on the timer's thread, and no new thread need to be created.

      Creating a new thread is not really a problem if virtual threads arwe used, but as of today, not many folks are running a JDK >= 21.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: