随笔分类 - Thread
java多线程技术
摘要:https://mp.weixin.qq.com/s/o4pq9dCYSGc9NJXMAUNGxA 问题:线程池 coolsize设置为 0,会出现什么情况? 以下是 JDK 21 线程池类 ThreadPoolExecutor#execute 方法源码: public void execute(R
阅读全文
摘要:博客:https://www.jianshu.com/p/7058c21e615e public static void main(String[] args) { test3(); } public static void test1() { Runnable runnable = () -> {
阅读全文
摘要:https://blog.csdn.net/a837199685/article/details/52712547 package com.cn.xiaonuo.main.test.module; import com.cn.xiaonuo.core.tenant.entity.TenantInfo
阅读全文
该文被密码保护。
摘要:MyThread.class Run.class mainThread: falsemyThread: truemain 开始睡觉java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Me
阅读全文
摘要:参考:https://www.cnblogs.com/andy-zhou/p/5402984.html
阅读全文

浙公网安备 33010602011771号