execute methods in a order with threads