simply multi_thread with race conditions