摘要: The answer is pretty simple -- use it when you actually need something it provides that synchronized doesn't, like timed lock waits, interruptible loc... 阅读全文
posted @ 2015-08-18 20:43 glf2046 阅读(164) 评论(0) 推荐(0) 编辑
摘要: # lock across processe.g. Server handles request from different clients, there clients are essentially different processes, they could potentially wri... 阅读全文
posted @ 2015-08-18 20:38 glf2046 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1 package fred.ubs.test.src.algo; 2 3 public class DijkstraTest { 4 public static void main(String[] args) { 5 int n = 8; 6 ... 阅读全文
posted @ 2014-11-28 19:27 glf2046 阅读(134) 评论(0) 推荐(0) 编辑