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.
Jstack 输出包含 tid(线程 id)。我相信 tid 对应于 Thread.getId() 的十六进制值。但事实并非如此。我用一个具体的例子对此进行了测试,得到了不同的值。我对 tid 是如何形成的很感兴趣。如何通过 Thread.getId() 的值在 jstack 中找到线程?
例子:
Thread.getId() = 64 in Jstack: tid=0x00007fb368001800 nid=0x1b99