Question d’entretien chez Quantbox Research

How would you implement a spinlock