• Post Reply Bookmark Topic Watch Topic
  • New Topic

Distributing Locks  RSS feed

 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Terracotta, it is possible to have a lock which works across JVMs. How do they achieve that?
 
Henry Wong
author
Sheriff
Posts: 22852
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Yohan Liyanage:
In Terracotta, it is possible to have a lock which works across JVMs. How do they achieve that?


First, I have never used it, so this is *not* an endorsement (of whether it works or not). I just happened to have done some research of Terracotta a few months ago...


Yes, it is possible to have a lock which works across JVMs. I believe they achieve that by having their own class loader. Classes which are loaded through Terracotta, will have their bytecodes modified -- basically, for locks, Monitor enter and exits will be changed to go through the Terracotta server.

Henry
[ August 25, 2007: Message edited by: Henry Wong ]
 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Henry.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!