Smarsh Interview Question

Difference between wait and sleep.