ros::init() running multiple threads?
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.
Hi, incase if you had found the ans, it will useful if you could share it.