pthread affinity example