摘要: 1.首先准备一个类,里面书写两个方法,线程同步就是按序执行。 2.创建两个线程分别为MyThread 和 MyThreadTwo 分别继承thread 和 是实现 runnable接口 包含 打印机 printter 对象 3.测试类 实现runnable 接口的 线程 不能调用start()方法, 阅读全文
posted @ 2016-08-14 14:59 Beyondづ 阅读(116) 评论(0) 推荐(0)