Dorabot Interview Question

How spinlocks actually work?