Skip to content

Make decreaseValue method synchronized#709

Closed
koder95 wants to merge 1 commit into
mate-academy:masterfrom
koder95:my-solution
Closed

Make decreaseValue method synchronized#709
koder95 wants to merge 1 commit into
mate-academy:masterfrom
koder95:my-solution

Conversation

@koder95

@koder95 koder95 commented Dec 31, 2025

Copy link
Copy Markdown

Added the synchronized keyword to the decreaseValue method in Counter to ensure thread safety when decrementing the value.

Added the synchronized keyword to the decreaseValue method in Counter to ensure thread safety when decrementing the value.
@koder95 koder95 closed this Dec 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant