Thread, LWP and 'top' with 'H'
Originally written by
- Another problem: how do we see the threads in the system (e.g. CPU usage
of each thread)?
- Solution: the Linux 'top' command allows viewing threads:
- just hit 'H' when inside 'top'...
- ...at which point each thread will be seen on a separate line...
- ...and then the 'PID' field will show the LWP ID (as seen in gdb's