Java多線程,啓動四個線程,兩個執行加一,另外兩個執行減一

package com.yu.learn.main; public class MyThread { public static void main(String[] args) { OneThread one = new OneThread("add"); Thread t1 = new Thread(one); Thread t2 = new Thread(one);
相關文章
相關標籤/搜索