Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

lock  RSS feed

 
Arun Prasath
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many locks does an Object have? if it is one , how it is ?
explain me in detail?
 
Shaan Shar
Ranch Hand
Posts: 1249
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Arun Prasath AV:
How many locks does an Object have? if it is one , how it is ?
explain me in detail?




Is it order... Well if yes... then certainly nobody will like it....
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An object has one lock.

Here's an article about locks in the JVM: http://www.javaworld.com/javaworld/jw-07-1997/jw-07-hood.html
[ September 05, 2006: Message edited by: Svend Rost ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!