There aren't thread safety issues with static vs instance methods per se, no. You could write thread-safe or -unsafe code either way. It only concerns whether the methods are attached to a 'this'.
On Wed, Aug 18, 2010 at 2:26 PM, Saikat Kanjilal <[email protected]> wrote: > On this topic there are repercussions with using static methods related to > thread safety and unpredictable behavior when a static method modifies a data > structure shared between threads and race conditions associated with this. > In general do you all have guidelines as to when to use instance versus > static methods? Doesn't it also depend on how the chunk of code is being > called?
