Teleca interview question

What's the difference between spin lock and semaphore