3 ms·
Threads usually share address space. There's no way to know particular thread memory usage, so htop just duplicates same information for every thread.
by garaetjjte 6y ago
Threads usually share address space. There's no way to know particular thread memory usage, so htop just duplicates same information for every thread.
- scubbo 6y agoGot it, thanks. > There's no way to know particular thread memory usage This sounds like the sort of statement that is self-evident to folks with a CS education (I studied math, and all my CS/programming knowledge is self-taught). I'll add that to my _long_ backlog of things that I should research to get over my imposter syndrome :)
- SAI_Peregrinus 6y agoFor most operating systems, threads each have their own stack space, and (if supported) thread-local storage, but share heap, constants (.bss), and static variables (.data). It's impossible to say exactly what resources a given thread is using from those shared resources, so htop just includes them all, for every thread.
- scubbo 6y agoMuch appreciated, thank you!