Pergunta de entrevista da empresa Goldman Sachs

How would you implement an automatic garbage collector in C++?

Resposta da entrevista

Sigiloso

27 de mar. de 2012

The answer I gave (which he said is how it is actually done) is to mirror how a cache works in hardware and periodically delete all references that are not held in the "cache" (which I stored as a priority queue).