check all threads
ps uax
check the top 5 processes by memory usage
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5
check all threads of other user
ps -u other_user -L