segwords multithreading