Salesforce interview question

Describe how to use a mutex lock