Created
September 18, 2015 19:53
-
-
Save kireal/0d262c887642bb16e602 to your computer and use it in GitHub Desktop.
sum thread number linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -eo nlwp | tail -n +2 | awk '{ num_threads += $1 } END { print num_threads }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment