Linux下巧用ps得到运行线程个数和线程启动时间
Linux进程运行了很久,怎么能够得到某一进程所有的线程个数并且得到它们的启动时间,除了读取/proc信息之外,我们可以使用ps简单的达到目的。ps max -o lstart,lwp,pid,nlwp,cmdlstart STARTED time the command started.nlwp NLWP number of lwps (threads) in the process. (alias thcount).lwp LWP lwp (light...