Error corrected in multithread part: threads weren't started.