What's a distributed lock and why use it?

Viewed 3721

Why do people need a distributed lock?

When the shared resource is protected by it's local machine, does this mean that we do not need a distributed lock?

I mean when the shared resource is exposed to others by using some kind of api or service, and this api or service is protected using it's local locks; then we do not need this kind of distributed lock; am I right?

2 Answers
Related