multithreading first iteration