摘要: http://www.javamex.com/tutorials/synchronization_final.shtmlThread-safety with the Java final keywordAs of Java 5, one particular use of the final key... 阅读全文
posted @ 2015-08-18 20:44 glf2046 阅读(141) 评论(0) 推荐(0)
摘要: 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 阅读(170) 评论(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 阅读(213) 评论(0) 推荐(0)