摘要: 线程池基本使用 import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class PoolDemo { public static void main(String[] a 阅读全文
posted @ 2022-02-20 15:29 CoderCatIce 阅读(61) 评论(0) 推荐(0) 编辑
摘要: java多线程生产者消费者模型 利用缓冲区解决:管程法 // 生产者,消费者,产品,缓冲区 public class TestPCDemo { public static void main(String[] args) { // 定义容器 SynContainer synContainer = n 阅读全文
posted @ 2022-02-20 14:22 CoderCatIce 阅读(47) 评论(0) 推荐(0) 编辑