摘要: import java.util.List;import java.util.concurrent.LinkedBlockingQueue;import java.util.concurrent.RejectedExecutionHandler;import java.util.concurrent 阅读全文
posted @ 2022-04-04 11:27 yydssc 阅读(143) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-04-04 11:25 yydssc 阅读(19) 评论(0) 推荐(0)
摘要: /** 线程封闭示例 */public class Demo5 { /** threadLocal变量,每个线程都有一个副本,互不干扰 */ public static ThreadLocal<String> value = new ThreadLocal<>(); /** * threadloca 阅读全文
posted @ 2022-04-04 10:32 yydssc 阅读(33) 评论(0) 推荐(0)