Cycles and iteration control in different threads.