Pergunta de entrevista da empresa GE

Describe a design pattern. Whiteboard a simple example. We extended it to consider implications of multi-threaded environment.

Resposta da entrevista

Sigiloso

15 de abr. de 2019

Described singleton pattern and worked through implementation of constructor in a multi-threaded environment. (Specifically, check for instantiation before creating lock, then check again after gaining lock prior to instantiation)