Tasks # shown by top vs htop

New to Debian (Or Linux in general)? Ask your questions here!

Tasks # shown by top vs htop

Postby J. Reis » 2018-03-10 16:19

This is probably just a stupid, newbie failure to grasp some simple concept. But searching here, on forums.debian.net and the web generally didn't provide an explanation. So, in the interest of learning:

On my system (Debian Stable 9.3) the utilities, top and htop show a different number of Tasks. This is consistently the case for me. I have unchecked both the "hide threads" options in htop for good measure, though these do not affect the displayed number of tasks.


Presently top reports: Tasks: 256 total, 1 running, 255 sleeping, 0 stopped, 0 zombie
htop reports: Tasks: 119, 644 thr; 137 kthr; 1 running


'ps -e | wc -l' shows 255 which matches the output from top, minus top's own process of course.

If someone more knowledgeable would be willing to explain exactly what htop is showing, so I can understand why it is different than the counts from other tools I'd be very grateful.
User avatar
J. Reis
Posts: 18
Joined: 2015-08-04 06:19

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests