I would like to monitor the number of threads used by a specific process on Linux. Is there an easy way to get this information without impacting the performance of the proc
If you want the number of threads per user in a linux system then you should use:
ps -eLf | grep | awk '{ num += $6 } END { print num }'
where as use the desired user name.