Nutanix Interview Question

semaphore and mutex difference,dequeue uses