2015年6月9日
摘要: 在Java中没有信号量机制。主要用的是互斥锁,来进行互斥或同步的对一个变量加上volatile修饰符,就保证了这个变量的些是必须在这个变量的读前面的。This guarantees that any write tomessage(as in "Key statement 1") will have... 阅读全文
posted @ 2015-06-09 21:37 eyyzx678 阅读(111) 评论(0) 推荐(0)