Skip to content

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.

Where the book teaches it

Related terms

SingletonJVM