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

Timer: don't submit non-blocking tasks to the thread pool

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.0
    • None
    • None

      Currently, TimeScheduler3 has a runner thread which continually takes tasks from a DelayQueue and submits them to the thread pool.

      If a task is non-blocking, this is not necessary; instead the task can be run on the runner's thread. This will reduce the number of thread created in the thread pool.

      Investigate whether it is possible to mark tasks as blocking or non-blocking. Example: an AgeOutCache task is always non-blocking. A UNICAST3 or NAKACK2 retransmission task is (potentially) blocking if TCP is used as transport and non-blocking if for example UDP or TCP_NIO2 are used.

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

                Created:
                Updated:
                Resolved: