use thread affinity on linux