Pergunta de entrevista da empresa Yahoo

you are given a code that implements a cache with a cleaner thread, 1. what does this code do? 2. are there any problems with it?

Resposta da entrevista

Sigiloso

20 de nov. de 2017

1. the codes implements a cache with a TTL which is enforced by the cleaner thread 2. the cleaner thread access the cache in a non thread safe way, need to add locks