Thread Unsafe
– If any object is allowed to modify by more than one thread at the same time.
Thread Safe
– If any object is not allowed to modify by more than one thread at the same time.
Generally, immutable objects are thread-safe.
Thread Unsafe
– If any object is allowed to modify by more than one thread at the same time.
Thread Safe
– If any object is not allowed to modify by more than one thread at the same time.
Generally, immutable objects are thread-safe.