摘要: 看到一个线程题目,自己对线成不太了解,看看书,写个小例子。抛砖引玉吧/*** 多线程求和* @author LIUYONG* 2011-07-31*/public class ThreadTestForSum implements Runnable { static Integer sum = 0; public static void main(String[] args) { for (int i = 0; i < 10; i++) { // 创建10个线程 ThreadTestForSum line = new ThreadTestForSum(); Thread t = new 阅读全文
posted @ 2011-07-31 21:32 不及格的飞鱼 阅读(914) 评论(0) 推荐(0) 编辑