ubuntu view cpu threads by program code example Example: how to print cpu usage of threads in process ubuntu top -H -p pid