bigxianyu
V2EX  ›  问与答

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

  •  
  •   bigxianyu · Aug 9, 2022 via Android · 1166 views
    This topic created in 1392 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
        1
    Aruforce  
       Aug 9, 2022
    jstack
    bigxianyu
        2
    bigxianyu  
    OP
       Aug 9, 2022 via Android
    jstack 貌似只打印 monitor
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5664 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.