Frage im Vorstellungsgespräch bei UKG

Singleton Pattern implementation and how to make it thread-safe ?