What is “Locked ownable synchronizers” in thread dump?

后端 未结 3 1290
南笙
南笙 2021-02-01 03:21

I am trying to understand what does Locked ownable synchronizers refer to in a thread dump?

I started using ReentrantReadWriteLock have a thread in WA

3条回答
  •  深忆病人
    2021-02-01 04:07

    From Java 7 documentation:

    An ownable synchronizer is a synchronizer that may be exclusively owned by a thread and uses AbstractOwnableSynchronizer (or its subclass) to implement its synchronization property. ReentrantLock and ReentrantReadWriteLock are two examples of ownable synchronizers provided by the platform.

提交回复
热议问题