2019年8月5日

摘要: package com.day20; public class Test { public static void main(String[] args) { Demo01 site = new Demo01(); Thread person1= new Thread(site,"桃跑跑"); Thread person2= new Th... 阅读全文
posted @ 2019-08-05 22:27 不胖 阅读(171) 评论(0) 推荐(0) 编辑
 
摘要: package com.day19; public class Test { public static void main(String[] args) { Thread thread = new Thread(new Demo01()); thread.setPriority(Thread.MAX_PRIORITY); thread.... 阅读全文
posted @ 2019-08-05 21:51 不胖 阅读(123) 评论(0) 推荐(0) 编辑
 
摘要: package com.day18; public class Test { public static void main(String[] args) { Demo02 youngMan = new Demo02("年轻人",500,1); Demo02 oldMan = new Demo02("老年人",1500,1); Syst... 阅读全文
posted @ 2019-08-05 21:48 不胖 阅读(103) 评论(0) 推荐(0) 编辑
 
摘要: package com.day18; public class Demo01 { public static void main(String[] args) { //创建线程对象 Mythread thread1 = new Mythread(); Mythread thread2 = new Mythread(); ... 阅读全文
posted @ 2019-08-05 21:38 不胖 阅读(188) 评论(0) 推荐(0) 编辑