摘要:
/** * Creates a new {@code ThreadPoolExecutor} with the given initial * parameters. * * @param corePoolSize the number of threads to keep in the pool, 阅读全文
摘要:
这个问题应该倒过来思考,HashMap的长度是2的N次幂,有什么优势? 在HashMap的putVal()方法中,为了确定插入元素在table[]数组中的下标位置,使用的与(&)运算来计算 如下代码 final V putVal(int hash, K key, V value, boolean o 阅读全文
摘要:
垃圾收集器组合 Serial+Serial Old Serial+CMS ParNew+CMS ParNew+Serial Old Paralle Scavenge + Serial Old Paralle Scavenge + Paralle Old 一.Serial(年轻代) : 年轻代收集器, 阅读全文