Skip to content

This method generates a new lock each time it steps into. What does this lock do? 这个方法每次进来都是一把新的lock, 这个加锁起到了什么作用? #1

@jiahut

Description

@jiahut

ReentrantLock lock = new ReentrantLock();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions