Arlo Technologies interview question

What difference between lock and semaphore