check threads of cpu ubunut code example Example: how to print cpu usage of threads in process ubuntu top -H -p pid