Static synchronized method | Instance synchronized method |
Thread acquires the monitor of the Class object associated with the static method | The thread obtains the monitor of the particular object on which the method call is being made |
None of other static methods will be used till the class lock is released |
{{theTime}}
Search This Blog
Total Pageviews
Synchronized methods vs Synchronized blocks
Subscribe to:
Post Comments (Atom)
gradlew : The term 'gradlew' is not recognized as the name of a cmdlet, function, script file , or operable program
The command gradlew was not found, but does exist in the current location. Windows PowerShell does not load commands from the current locat...
No comments:
Post a Comment