2017年3月30日
摘要: 单一职责原则论述:把因相同原因而变化的东西聚合一起,而把因不同原因而变化的东西分离开来。Gather together those things that change for the same reason, and separate those things that change for di 阅读全文
posted @ 2017-03-30 11:22 力奋 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Happens-Before规则 程序顺序规则。如果程序中操作A在操作B之前,那么在线程中A操作将在B操作之前执行。 监视器锁规则。在监视器锁上的解锁操作必须在同一个监视器锁上的加锁操作之前执行。 volatile变量规则。对volatile变量的写入操作必须在对该变量的读操作之前执行。 线程启动规 阅读全文
posted @ 2017-03-30 10:06 力奋 阅读(191) 评论(0) 推荐(0) 编辑