Dorabot interview question

How spinlocks actually work?