# Threaded Callback with priority, affinity and overrun handler

**URL:** <https://discourse.openrobotics.org/t/threaded-callback-with-priority-affinity-and-overrun-handler/14977>\
**Category:** ROS General\
**Tags:** real-time\
**Created:** [June 22, 2020, 10:18am UTC](https://discourse.openrobotics.org/t/threaded-callback-with-priority-affinity-and-overrun-handler/14977 "2020-06-22T10:18:51Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ZhenshengLee](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/zhenshenglee/32/10103_2.png) [@ZhenshengLee](https://discourse.openrobotics.org/u/ZhenshengLee)\
**Post date:** [September 14, 2023, 6:39am UTC](https://discourse.openrobotics.org/t/threaded-callback-with-priority-affinity-and-overrun-handler/14977/7 "2023-09-14T06:39:10Z")

</div>

Try the executor-level-executor provided by bosch, which is in the mainstream since Galactic.

the example is in [examples/rclcpp/executors/cbg\_executor at rolling · ros2/examples (github.com)](https://github.com/ros2/examples/tree/rolling/rclcpp/executors/cbg_executor)

the pr is in [executors should be able to operate on callback groups rather than nodes · Issue #519 · ros2/rclcpp (github.com)](https://github.com/ros2/rclcpp/issues/519)

tutorial is in [ROS2 from the Ground Up: Part 5- Concurrency, Executors and Callback Groups | by Jegathesan Shanmugam | Medium](https://medium.com/@nullbyte.in/ros2-from-the-ground-up-part-5-concurrency-executors-and-callback-groups-c45900973fd2)

the paper is in [Exploring Real-Time Executor on ROS 2 | IEEE Conference Publication | IEEE Xplore](https://ieeexplore.ieee.org/document/9301530)

---

_[View the full topic](https://discourse.openrobotics.org/t/threaded-callback-with-priority-affinity-and-overrun-handler/14977)._
