摘要: package cn.mutipart.thd; public class Test02 { public static void main(String[] args) { MyPainter p = new MyPainter(); new Thread(){ public void run() { ... 阅读全文
posted @ 2018-01-14 18:08 yoyo198212 阅读(149) 评论(0) 推荐(0) 编辑
摘要: package cn.mutipart.thd; public class TicketTest { public static void main(String[] args) { String lock = "这是线程锁"; Ticket t1 =new Ticket(lock); new Thread(t1).start(); ... 阅读全文
posted @ 2018-01-14 10:19 yoyo198212 阅读(468) 评论(0) 推荐(0) 编辑