public static void main(String[] args) {
		int counter=0;
		
		while (true) {
			System.out.println("create thread "+(counter++)+" ...");
			Thread thread = new Thread(new Runnable() {
				public void run() {
					while (true){
						try {
							Thread.sleep(1000);
						} catch (InterruptedException e) { 
							e.printStackTrace();
						}
					}
				}
			});
			
			thread.start();
		}

	}