DescriptionOn Linux, each thread has its own subfolder inside /proc/[PID]/task. You can easily count the number of subfolders using stat/st_nlink - 2 (not reliable across filesystems, but OK on procfs).
Patch Set 1 #
MessagesTotal messages: 1
|