since you expecting sequential execution of your "threads", not side by side, maybe it is more resonable just call two functions one after another?