Skip to content

Instantly share code, notes, and snippets.

@kireal
Created September 18, 2015 19:53
Show Gist options
  • Save kireal/0d262c887642bb16e602 to your computer and use it in GitHub Desktop.
Save kireal/0d262c887642bb16e602 to your computer and use it in GitHub Desktop.
sum thread number linux
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