View Single Post
  #1 (permalink)  
Old 11-14-2007, 11:49 PM
mikeg1z mikeg1z is offline
Member
 
Join Date: Nov 2007
Posts: 1
mikeg1z is on a distinguished road
Local Variables for a static method - thread safe?
Are they?

Is the exact memory location used for a local variable?
The method is indeed static so it's in the same memory location, I assume, but are the local variables as well? If they are placed on the stack then there is a different copy for every calling thread.

Does anybody knows for sure?

Thanks,
-Michael
Reply With Quote
Sponsored Links