• Post Reply Bookmark Topic Watch Topic
  • New Topic

Threads across JVMs  RSS feed

 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have heard that Java threads can be executed across JVMs, making a distributed environment. Anyway, I dont understand how to do this and also, I would like to know how Objects are managed in such a situation. For example, if the thread locks on a particular object, then since threads are on different JVMs, the lock will be useless, isn't it? Thanks for help.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Threads and locks are specific to one JVM. If you were told otherwise, I think the person who told you was wrong.

But Java is a very good language for implementing systems that have components distributed over several processes or several machines. There are various ways to do it: RMI, CORBA, Web Services etc.
 
Yohan Liyanage
Ranch Hand
Posts: 132
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really? Thanks for the help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!