07 2018 档案

摘要:Reference [1] Repost http://javabypatel.blogspot.com/2016/09/concurrenthashmap-interview-questions.html Question 1. What is the need of ConcurrentHash 阅读全文
posted @ 2018-07-23 17:01 小张的练习室 阅读(426) 评论(0) 推荐(0)
摘要:Reference [1] 【转】https://blog.csdn.net/zeb_perfect/article/details/54135506 [2] https://blog.csdn.net/xlgen157387/article/details/79530877 缓存穿透 缓存穿透是指 阅读全文
posted @ 2018-07-20 16:37 小张的练习室 阅读(131) 评论(0) 推荐(0)
摘要:Reference [1] https://zhuanlan.zhihu.com/p/38969245 方法1: 对单个数据的更新,可以使用CAS(Compare-and-Swap)指令。 伙计们的操作变成下面这个过程: 伙计A看了下总账户余额是1200,然后记住这个数字,回来计算1200+50=1 阅读全文
posted @ 2018-07-10 06:35 小张的练习室 阅读(530) 评论(0) 推荐(0)