摘要:
CyclicBarrier的官方解释: A synchronization aid that allows a set of threads to all wait for each other to reach a common barrier point. CyclicBarrier是一个同步的 阅读全文
摘要:
Lock简单介绍 public class LockDemo { // 声明一个lock锁 private Lock lock = new ReentrantLock(); private int count; // 用lock来加锁 public void increament01() { // 阅读全文
摘要:
在链接数据库的时候,报错如下: The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 上网查,一 阅读全文