• 2025-12-15
j*a中PriorityBlockingQueue的入队

PriorityBlockingQueue入队是插入并自动堆化排序,非简单追加;基于可变数组的最小堆,线程安全,offer/put均不阻塞,元素须可比较。...

11