48

再有人问你分布式锁,这篇文章扔给他

 5 years ago
source link: https://juejin.im/post/5bbb0d8df265da0abd3533a5
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.背景 对于锁大家肯定不会陌生,在Java中synchronized关键字和ReentrantLock可重入锁在我们的代码中是经常见的,一般我们用其在多线程环境中控制对资源的并发访问,但是随着分布式的快速发展,本地的加锁往往不能满足我们的需要,在我们的分布式

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK