bigxianyu
V2EX  ›  问与答

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

  •  
  •   bigxianyu · Aug 9, 2022 via Android · 1231 views
    This topic created in 1435 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   ·   4567 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 01:03 · PVG 09:03 · LAX 18:03 · JFK 21:03
    ♥ Do have faith in what you're doing.