摘要:
package cn.mutipart.thd; public class Test02 { public static void main(String[] args) { MyPainter p = new MyPainter(); new Thread(){ public void run() { ... 阅读全文
摘要:
package cn.mutipart.thd; public class TicketTest { public static void main(String[] args) { String lock = "这是线程锁"; Ticket t1 =new Ticket(lock); new Thread(t1).start(); ... 阅读全文