-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coarse-Grained Lock pattern #1289
Open
iluwatar opened this issue
Jul 7, 2020
· 4 comments
· Fixed by unminnn/java-design-patterns#1 · May be fixed by #3124
Open
Coarse-Grained Lock pattern #1289
iluwatar opened this issue
Jul 7, 2020
· 4 comments
· Fixed by unminnn/java-design-patterns#1 · May be fixed by #3124
Comments
Hi, I would like to have a try. Can you assign it to me? |
This was referenced May 18, 2022
Yes, go ahead @SpaceIshtar |
Actually, @iluwatar can you please assign this to me. |
This was referenced Dec 7, 2024
This issue is stale because it has been open 60 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The Coarse-Grained Lock design pattern is a concurrency control strategy where a single lock is used to protect a large portion of code or multiple related resources. This approach simplifies lock management by reducing the number of locks needed and minimizing the potential for deadlocks. However, it can reduce concurrency as the coarse-grained lock may force threads to wait even when they could safely proceed.
Main Elements of the Pattern:
Implementation Steps:
References
Acceptance Criteria
The text was updated successfully, but these errors were encountered: