• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

object lock

 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have one question : what is object lock ?

Thanks,
Satya
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Satya,

Your question is quite ambiguous (at least to me).

Do you mean to say lock related class (e.g. java.util.concurrent.locks.ReentrantLock)? Or do you mean lock obtained on an object (by synchronized block)?

Also, what exactly do you want to know about it?
 
S Majumder
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anayonkar,
I want to know
a) what is ReentrantLock and how actually its work ?
b) The lock obtained on an object ..

Thanks
-- Satya
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
S Majumder wrote:Hi Anayonkar,
I want to know
a) what is ReentrantLock and how actually its work ?
b) The lock obtained on an object ..

Thanks
-- Satya

Well, I would highly suggest firstly go through JavaDocs of corresponding classes. If you face any doubt(s), you can always post here.
 
Henry Wong
author
Marshal
Pie
Posts: 21184
80
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The Oracle tutorial on threads is also a good place to start....

http://docs.oracle.com/javase/tutorial/essential/concurrency/

Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic