Click here to Skip to main content
15,120,739 members
Articles / General Programming / Threads

Tagged as

Stats

2.5K views
3 bookmarked

Threading in Java : A Look at Synchronized

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
19 Jun 2021CPOL2 min read
Meaning of synchronized keyword with a deeper look
This article tries to explain the meaning of keyword synchronized w.r.t. object as well as class level lock. The purpose of the exercise done in this article is to understand that a synchronized function internally uses an object level lock while a static synchronized function internally uses a class level lock for its entire code.

Views

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Chetan Kudalkar
Software Developer (Senior)
India India
I am a Software engineer with around 7+ years of experience. Most of my experience is in Storage technology.

Comments and Discussions