Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 fork 和 execv 来启动子进程。如果我运行 htop 那么我可以找到这些进程。但是,OSX 活动监视器不会显示它们,即使我将其设置为显示所有进程。这是为什么?
htop 中的 S 列显示了我所有进程的 Z。这意味着什么?这可能与它有关吗?
htop 中的 Z 表示该进程是“僵尸”。这意味着进程已经运行完毕想要死掉,但是父进程还没有调用wait()获取子进程退出码。
wait()
OS X 活动监视器可能不显示僵尸进程。