V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
bigxianyu
V2EX  ›  问与答

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

  •  
  •   bigxianyu · Aug 9, 2022 via Android · 1121 views
    This topic created in 1370 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   ·   5768 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 06:51 · PVG 14:51 · LAX 23:51 · JFK 02:51
    ♥ Do have faith in what you're doing.