public static void main(String args[]) {
        Counter counter = new Counter();
        
        for (int i = 0; i < 100; i++) {
            Increaser increaserTask = new Increaser(counter);
            Thread t = new Thread(increaserTask);
            t.start();
            synchronized(t){
                try{
                    t.wait();
                } catch (InterruptedException ex){}
            }
        }
    }