main starts Routine 1 starts to work Routine 1 finished Routine 2 starts to work Routine 2 finished main ends