public static void main(String[] args) throws Exception {
		ExecutorService exec = Executors.newCachedThreadPool();
//		for (int i = 0; i < 5; i++)
//			exec.execute(new Entrance(i));
//		// Run for a while, then stop and collect the data:
//		TimeUnit.SECONDS.sleep(3);
//		Entrance.cancel();
//		exec.shutdown();
		
		Thread t = new Thread(new Entrance(0));
		t.start();
		t.interrupt();
		System.out.println(t.isInterrupted());
		System.out.println(Thread.interrupted());

		
		if (!exec.awaitTermination(250, TimeUnit.MILLISECONDS))
			System.out.println("Some tasks were not terminated!");
		System.out.println("Total: " + Entrance.getTotalCount());
		System.out.println("Sum of Entrances: " + Entrance.sumEntrances());
	}