I am developing a multi-threaded Unix application in C. Is there an easy way to get the number of concurrently active threads? I do not want to write code to track the number of active threads, if this can already be done for me by the library !:-)
I am using POSIX pthreads and I am trying to write as portable as possible code for Unix and Unix-like systems.
source
share