Pergunta de entrevista da empresa Quantbox Research

How would you implement a spinlock