As a ros user you probably shouldn't know about the internals of ros::init(), but looking at htop when running a simple ros node shows at least 5 threads on my linux machine (kinetic release). If I comment out ros::init(argc, argv, "my_node") (then it's probably not a ros node anymore) I see only 1 thread. I guess this is normal behavior but I was just wondering what all these threads are for? And is the thread count always 5 or depending on something?
I want to be able to count how many threads my program is using excluding ros threads.
Originally posted by maartenvds on ROS Answers with karma: 1 on 2018-02-23
Post score: 0
Original comments
Comment by rt_ros on 2020-09-23:
Hi, incase if you had found the ans, it will useful if you could share it.