如何在 Windows 和 Linux 上查找哪个线程使用的 CPU 时 间最长?

使用 jstack 找出消耗 CPU 最多的线程代码