摘要:
编写一个多线程处理的程序,其他线程运行10秒后,使用main的方法中断其他线程。publicclassxiti_19 implements Runnable{public void run(){try{System.out.println("在run()方法中—这个线程休息10秒”);Thread.sleep(10000);System.out.println("在run的方法中--继续运行“);}catch (InterruptedExceptio x){System.out.println("在run()方法中--中断线程);return;{System.ou 阅读全文
posted @ 2012-09-30 08:24
汤成云
阅读(206)
评论(0)
推荐(0)

浙公网安备 33010602011771号