public static void main(String[] args){
		int threadNum=1000;
		CountDownLatch threadSignal = new CountDownLatch(threadNum);
		for(int i=0;i<10;i++){
			map.put(i, 0);
		}
		for(int i=0;i<threadNum;i++){
			Thread t=new Thread(new ThreadDemo(threadSignal));
			t.start();
		}
		try {
			threadSignal.await();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(map);
		System.out.println(set);
	}