Linux:查看调试多进程和多线程调试和查看
2020-03-04 本文已影响0人
乔大叶_803e
查看当前运行的进程
查看当前运行的进程
方式一
ps aux |head -n1 && ps aux |grep a.out
方式二:
方式二的进程查询ps -ef |head -n1 && ps -ef |grep a.out
杀死进程
kill -9 进程pid
进程调试
单进程调试
follow-fork-mode
多进程调试
detach-on-fork
线程查看
查看当前线程ps -al