正在加载图片...
例10.2 public class multiThreadexample2t public static void main(String [args) Thread tl=new Thread (new CustomThreadc"a")) Thread t2=new Thread(new CustomThread(b); t1.star(0;∥启动线程A t2. start0;∥动线程B G carre例10.2 public class MultiThreadExample2{ public static void main(String []args){ Thread t1=new Thread(new CustomThread("A")); Thread t2=new Thread(new CustomThread("B")); t1.start(); //启动线程A t2.start(); //启动线程B } }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有