Pergunta de entrevista da empresa Google

Simple algofithmic questions, one about locks (how to make queue useful for multiple threads) and one about C++ fundamentals.