Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] RMI and threading


  • From: anikomei@xxxxxxxxxxx (Sameer Gurung)
  • Subject: [Advanced-java] RMI and threading
  • Date: Wed, 23 Jan 2002 15:16:25 +0530

Hi Folks,
	CAn anyone tell me whether RMI is thread safe. Here's what my application 
does. I have a servelet where I have two threads working. In both the 
threads I call a remote method. In each of these methods I increment a 
variable. I would like to know whether this incrementing of a variable is 
thread safe.... If it isn't can anyone tell me how do I make it thread safe. 
Would puting the incrementing code in a synchronised block do the 
trick???....


Thanks,
Sameer





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx