public class ThreadBsae {
public static void main(String[] args){
ThreadTest th1 = new ThreadTest(“Thread-1”);
ThreadTest th2 = new ThreadTest(“Thread-2”);
RunnableTest run1 = new RunnableTest(“Thread-3”);
Thread thr1 = new Thread(run1);
th1.start();
th2.start();
thr1.start();
}
}
09-24
700
07-07
03-15
2882
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交