143

如何设计并实现一个线程安全的 Map ?(下篇)

 6 years ago
source link: https://juejin.im/post/59d8d7cc6fb9a00a496e93b2
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.
在上篇中,我们已经讨论过如何去实现一个 Map 了,并且也讨论了诸多优化点。在下篇中,我们将继续讨论如何实现一个线程安全的 Map。说到线程安全,需要从概念开始说起。 线程安全就是如果你的代码块所在的进程中有多个线程在同时运行,而这些线程可能会同时运行这段代

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK