...
Anchor | ||||
---|---|---|---|---|
|
Wiki Markup |
---|
*thread-safe* : An object is thread-safe, if it can be shared by multiple threads without the possibility of any data races. "A thread-safe object performs synchronization internally, so multiple threads can freely access it through its public interface without further synchronization." \[[Goetz 06|AA. Java References#Goetz 06]\]. Immutable classes are thread safe by definition. Mutable classes may also be thread-safe if they are properly synchronized. |
Anchor | ||||
---|---|---|---|---|
|
...