Boost threading
I am using boost to create several threads. Redhat Linux has a limit of 256 threads per process at a time. Even though my threads are exiting, I am unable to create more than 255 threads.
In the past when I used pthread_create (which I assume boost is using internally), I had to create the thread "detached" or the resources would never clean up and even if the thread exited I would never be able to create more than 255 threads.
I am assuming this is a similar problem, but do not see anywhere in the documentation on how to create the threads detached or how to detach them after creation.
Any help would be appreciated.
Brian
|