fn set_core_affinity(worker_id: usize)
Set the current thread’s core affinity, based on the given worker_id.
worker_id