# Threading Across Multiple Nodes ROS1 C++

**URL:** <https://get-help.theconstruct.ai/t/threading-across-multiple-nodes-ros1-c/22359>\
**Category:** ROS Basics In 5 Days (C++)\
**Tags:** threading\
**Created:** [February 13, 2023, 6:35pm UTC](https://get-help.theconstruct.ai/t/threading-across-multiple-nodes-ros1-c/22359 "2023-02-13T18:35:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Voltedge](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/voltedge/32/7586_2.png) [@Voltedge](https://get-help.theconstruct.ai/u/Voltedge)\
**Post date:** [February 13, 2023, 7:01pm UTC](https://get-help.theconstruct.ai/t/threading-across-multiple-nodes-ros1-c/22359/2 "2023-02-13T19:01:33Z")

</div>

Hi @IMSETraining

- When you compile server action and action client, what appears on shells?

Remember that when you use multithreading it is not for controlling multiple nodes, but for multiple callbacks

```
 ros::AsyncSpinner spinner(0); //number of threads
 spinner.start();
 //callbacks u want to control 
 ros::waitForShutdown();

```

---

_[View the full topic](https://get-help.theconstruct.ai/t/threading-across-multiple-nodes-ros1-c/22359)._
