Java并发程序入门
摘要:今天看了看Java并发程序,写一写入门程序,并设置了线程的优先级。class Elem implements Runnable{ public static int id = 0; private int cutDown = 5; private int priority; public void setPriority(int priority){ this.priority = priority; } public int getPriority(){ return this.priority; } public void run(){ Thread.currentThread().se.
阅读全文
posted @ 2010-10-26 21:28
浙公网安备 33010602011771号