• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is Class Locking?

 
Naveen Kota
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Class locking? How do we achieve Class Locking? What is the difference between Class Locking and Object Locking?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Object locking" and "class locking" aren't established, meaningful terms with specialized, subtle depths of meaning. They just refer to synchronizing on an instance of a class ("object locking") or synchronizing on the java.lang.Class instance that represents a class ("class locking,") Nothing special or mysterious at all about "class locking"; it's just what static methods (aka "class methods") do for synchronization.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic