
多线程
空中的鱼1987
这个作者很懒,什么都没留下…
展开
-
三线程联系输出abc
[code="java"] public class ThreadPrint { /** * @author my_corner * @param * @return * @throws InterruptedException */ public static void main(String[] args) ...原创 2012-08-11 16:03:58 · 87 阅读 · 0 评论 -
三线程联系输出abc
throws InterruptedException { PrintTask task = new PrintTask(); Thread a = new Thread(task); a.setName("a"); Thread b = new Thread(task); b.setName("b"); Thread c = new Thread(task原创 2012-08-11 16:03:58 · 60 阅读 · 0 评论