I want to start two process at the same time and make sure complete them all before proceeding other steps. Can you help? I already tried Thread, it can't start two at the same time and wait until been done.

```
    final CyclicBarrier gate = new CyclicBarrier(3);
    Thread r2 = new Thread()
    {

        public void run()
        {
            try
            {
                int i = 0;
                while (i < 3)
                {
                    System.out.println("Goodbye, " + "cruel world!");
                    Thread.sleep(2000L);
                    i++;
                    gate.await();
                }
            }
            catch (InterruptedException | BrokenBarrierException iex)
            {
            }
        }
    };

    Thread r3 = new Thread()
    {
        public void run()
        {
            try
            {
                int i = 0;
                while (i < 3)
                {
                    System.out.println("Goodbye, " + "cruel world!");
                    Thread.sleep(2000L);
                    i++;
                    gate.await();
                }
            }
            catch (InterruptedException | BrokenBarrierException iex)
            {
            }
        }
    };

    r2.start();
    r3.start();
    gate.await();
    System.out.println("Donew");

```