Skip to content

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

Description

@jiahut

ReentrantLock lock = new ReentrantLock();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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