Glossary: Software Design Patterns in Java
Thread-safe
Also written: volatile, thread
Safe to use when several threads run at once. In `Settings`, `volatile` makes a change visible to every thread, and the JVM creates an enum constant once.
Glossary: Software Design Patterns in Java
Also written: volatile, thread
Safe to use when several threads run at once. In `Settings`, `volatile` makes a change visible to every thread, and the JVM creates an enum constant once.