On 11/19/2015 08:40 AM, Ish wrote: > For 380 threads (Linux limit) it works, for 381 threads it > dies. The program termination is exactly same as in 381 threads > created using spawn().
I've read some more about this. It looks like there are no separate counts or limits for detached versus joinable threads. Luckily, that limit can be changed:
https://dustycodes.wordpress.com/2012/02/09/increasing-number-of-threads-per-process/ Ali