bigxianyu
V2EX  ›  问与答

怎么查一个锁对象被哪一个线程持有?

  •  
  •   bigxianyu · Aug 9, 2022 via Android · 1473 views
    This topic created in 1547 days ago, the information mentioned may be changed or developed.

    用了 juc 包里的 reentrant read write lock ,发现生产出现了死锁,这种怎么排查

    2 replies  •  2022-08-09 21:03:05 +08:00
    Aruforce
    Aruforce
    Aug 9, 2022
    1
    jstack
    bigxianyu
    bigxianyu
    OP
    Aug 9, 2022 via Android
    2
    jstack 貌似只打印 monitor
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4389 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 138ms · UTC 05:44 · PVG 13:44 · LAX 21:44 · JFK 00:44
    ♥ Do have faith in what you're doing.