Fujitsu Interview Question

When to use semaphores vs locks?