-
-
Notifications
You must be signed in to change notification settings - Fork 735
Add approach for Bank Account #3031
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
Conversation
5c45161
to
43a2d4b
Compare
If any other thread holds a lock on the `BankAccount` object, it must wait for the other thread to release the lock. | ||
|
||
~~~~exercism/note | ||
In Java, the is one other way to acquire a lock on the `BankAccount` objct - synchronized objects. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Java, the is one other way to acquire a lock on the `BankAccount` objct - synchronized objects. | |
In Java, there is one other way to acquire a lock on the `BankAccount` object - synchronized statements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading this again, I think it might be better to somehow use the term "Synchronized statements" to be consistent with the "Synchronized statements" approach. I'll edit this note accordingly.
exercises/practice/bank-account/.approaches/reentrant-lock/content.md
Outdated
Show resolved
Hide resolved
exercises/practice/bank-account/.approaches/readwrite-lock/content.md
Outdated
Show resolved
Hide resolved
exercises/practice/bank-account/.approaches/readwrite-lock/content.md
Outdated
Show resolved
Hide resolved
exercises/practice/bank-account/.approaches/readwrite-lock/content.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Jagdish Prajapati <[email protected]>
This is to be more consistent with the terminology used in the "synchronized statements" approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just these two tiny things:
exercises/practice/bank-account/.approaches/synchronized-statements/content.md
Outdated
Show resolved
Hide resolved
exercises/practice/bank-account/.approaches/synchronized-methods/content.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Jagdish Prajapati <[email protected]>
Co-authored-by: Jagdish Prajapati <[email protected]>
Resolves #2711
pull request
Reviewer Resources:
Track Policies