Domanda di colloquio di Safe Software

What are some potential problems of using the Singleton design pattern in a Multi-threaded environment? (Particularly when accessing the Singleton)

Risposta di colloquio

Anonimo

10 dic 2017

the biggest concern here is the possibilities of deadlocking on access to the Singleton.