摘要: 阅读全文
posted @ 2020-07-29 22:01 七月在野,八月在宇 阅读(81) 评论(0) 推荐(0) 编辑
摘要: /* 和主线程竞争 */ public class Test04 { static int ticket = 100; public static void main(String[] args) { new Thread(()->{ while(ticket>0){ try { Thread.sl 阅读全文
posted @ 2020-07-29 00:53 七月在野,八月在宇 阅读(293) 评论(0) 推荐(0) 编辑