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

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

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