【问题标题】:How to find the thread id through the process in macOS ?macOS中如何通过进程找到线程id? 【发布时间】:2019-11-18 06:53:19 【问题描述】: 如在Linux中:top -Hp [pid],但在macOS上无效。 【问题讨论】: top -H option in Macosx的可能重复 为什么用java标记? 标签: macos 【解决方案1】: 您可以使用ps -M 命令显示每个进程的所有线程,并具有一些PID。但它不显示threadid。 【讨论】: