摘要:
public class Alternately { private volatile Boolean preIsA = false; synchronized void backA() { try { while (preIsA == true) { wait(); } for (int i = 阅读全文
摘要:
作者:在好链接:https://www.zhihu.com/question/28790424/answer/102240328来源:知乎 ·内聚 内聚,通俗的来讲,就是自己的东西自己保管,自己的事情自己做。 经典理论告诉我们,程序的两大要素:一个是数据(data),一个是操作(opration)。 阅读全文
摘要:
引用计数(Reference Counting) 循环引用问题 标记清除(Mark and Sweep) 内存池(Memory Pools) Eden 是内存中的一个区域, 用来分配新创建的对象 。存活区(Survivor Spaces)Eden 区的旁边是两个存活区, 称为 from 空间 和 阅读全文