Sunday, July 18, 2010

Why worry about thread safety?

Given the structure of the JVM, local variables, method parameters, and return values are inherently "thread-safe." But instance variables and class variables will only be thread-safe if you design your class appropriately

-- Bill Venners

No comments:

Post a Comment