Domanda di colloquio di Quantbox Research

How would you implement a spinlock