adding USE_CPU_AFFINITY and a new example file