01 2026 档案
摘要:1. 回调:Promise Promise 链式调用解决了嵌套回调问题: fetchData() .then(data => process(data)) .then(result => display(result)) .catch(error => handleError(error)); //
阅读全文
摘要:一、现代并发集合的演进与应用 1.1 ConcurrentHashMap的现代化特性 Java 8及以后版本对ConcurrentHashMap进行了重大改进: CAS + synchronized锁优化:JDK 8中摒弃了分段锁机制,采用CAS和synchronized实现,锁粒度细化到链表头节点
阅读全文
浙公网安备 33010602011771号