Nutanix interview question

semaphore and mutex difference,dequeue uses