set_pthread_cpu
set_pthread_cpu(rim_threads[i], start_cpu + i);
set_pthread_cpu(mem_snapshot_thread, start_cpu + i);