htop - what is task, thread and running?
Htop gives me the following output :
The values didn't change for the last minutes.
So I wonder, what is the difference between "task", "thread" and "running" ?
I had a look to this page : http://www.deonsworld.co.za/2012/12/20/understanding-and-using-htop-monitor-system-resources/ but it skips this specific part :(
From what I know of my server usage, I would say :
- We have 10 process, which divide in 59 tasks, and 160 threads...
I don't really get the differences between each of these :-/
Any explanations ?
It is also strange because there are tens of processes :
You almost have it right. :)
There may be dozens of processes (or tasks) listed, but only 10 'threads' are actually 'running' on the CPU. The rest of the processes and threads are 'sleeping' until the OS schedules them for CPU usage.
So, there are 59 tasks, some of which are broken up into 160 threads, but only 10 threads are running on the CPU.