Alibaba cloud Q & A 2022-02-13 06:12:51 阅读数:370
Zookeeper What are the distributed locks provided ？
Zookeeper Two types of locks are available ： An exclusive lock 、 Shared lock . An exclusive lock means that only one thread at a time can use the resource , Shared lock is read lock sharing , Reading and writing are mutually exclusive , That is, multiple threads can read the same resource at the same time , If you want to use a write lock, you can only use one thread .Zookeeper Distributed locks can be controlled .
copyright：author[Alibaba cloud Q & A]，Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130612494022.html