摘要: 详解 阅读全文
posted @ 2020-06-15 00:38 忧桑の民工 阅读(63) 评论(0) 推荐(0) 编辑
摘要: package com.chengguo.线程; /** * 观察线程的状态 */ public class Demo_20200518005_State { public static void main(String[] args) throws InterruptedException { / 阅读全文
posted @ 2020-06-15 00:38 忧桑の民工 阅读(67) 评论(0) 推荐(0) 编辑
摘要: package com.chengguo.线程; /** * 测试线程的优先级 */ public class Demo_20200519001_Priority { public static void main(String[] args) { //主线程默认优先级 System.out.pri 阅读全文
posted @ 2020-06-15 00:36 忧桑の民工 阅读(94) 评论(0) 推荐(0) 编辑
摘要: package com.chengguo.线程; /** * 线程守护【举例:上帝守护人类】 */ public class Demo_20200522001_Daemon { public static void main(String[] args) { //创建线程 God god = new 阅读全文
posted @ 2020-06-15 00:35 忧桑の民工 阅读(108) 评论(0) 推荐(0) 编辑