122123124125126127128129130131132
ct.start(); mt.start(); // trigger for action ct.trigger(); mt.trigger(); // wait for threads to terminate ct.join(); mt.join();