OpenMP - Thread Affinity

Thread Affinity

Some vendors recommend setting the processor affinity on OpenMP threads to associate them with particular processor cores. This minimizes thread migration and context-switching cost among cores. It also improves the data locality and reduces the cache-coherency traffic among the cores (or processors).

Read more about this topic:  OpenMP

Famous quotes containing the word thread:

    Oh sure, everyone goes back to the earth at some point, but life itself is a thread that is never broken, never lost. Do you know why? Because each man makes a knot in the thread during his lifetime: it is the work he has done and that’s what gives life to life in the long stretch of time: the usefulness of man on this earth.
    Jacques Roumain (1907–1945)