1、查看进程号
HK526:/ $ top | grep pos
6232 shell 20 0 9.0M 2.4M 1.9M S 0.0 0.1 0:00.01 grep pos
6180 system 20 0 3.5G 102M 54M S 0.0 5.5 0:01.87 com.histone.smartpos.osspost.se+ 6146 system 20 0 3.6G 143M 93M S 0.0 7.7 0:04.09 com.histone.pos.shareduserfile
2、查看进程(PID 6146)下的线程
HK526:/ $ ps -T -p 6146
USER PID TID PPID VSZ RSS WCHAN ADDR S CMD
system 6146 6146 455 3794136 144196 0 0 S .shareduserfile
system 6146 6151 455 3794136 144196 0 0 S Jit thread pool
system 6146 6152 455 3794136 144196 0 0 S Signal Catcher
system 6146 6153 455 3794136 144196 0 0 S ADB-JDWP Connec
system 6146 6154 455 3794136 144196 0 0 S ReferenceQueueD
system 6146 6155 455 3794136 144196 0 0 S FinalizerDaemon
system 6146 6156 455 3794136 144196 0 0 S FinalizerWatchd
system 6146 6157 455 3794136 144196 0 0 S HeapTaskDaemon
system 6146 6158 455 3794136 144196 0 0 S Binder:6146_1
system 6146 6159 455 3794136 144196 0 0 S Binder:6146_2
system 6146 6178 455 3794136 144196 0 0 S Profile Saver
system 6146 6190 455 3794136 144196 0 0 S RenderThread
system 6146 6214 455 3794136 144196 0 0 S magnifier pixel
system 6146 6216 455 3794136 144196 0 0 S AsyncTask #1
system 6146 6217 455 3794136 144196 0 0 S AsyncTask #2
system 6146 6218 455 3794136 144196 0 0 S AsyncTask #3
system 6146 6219 455 3794136 144196 0 0 S AsyncTask #4
system 6146 6223 455 3794136 144196 0 0 S Binder:6146_3
system 6146 6224 455 3794136 144196 0 0 S Binder:6146_4
system 6146 6225 455 3794136 144196 0 0 S Thread-2
system 6146 6229 455 3794136 144196 0 0 S queued-work-loo