What is the difference between lock and Mutex?

Ram picture Ram · Sep 17, 2010 · Viewed 63.7k times · Source

What is the difference between lock and Mutex? Why can't they be used interchangeably?

Answer

Darin Dimitrov picture Darin Dimitrov · Sep 17, 2010

A lock is specific to the AppDomain, while Mutex to the Operating System allowing you to perform inter-process locking and synchronization (IPC).