Programming Multi-Core and Many-Core Systems

Table of Contents

Finishing OpenMP

Controlling thread affinity

OpenMP thread binding:

OpenMP parallel proc_bind clause:

places:

busy-wait vs suspension:

Atomic operations:

So, OpenMP:


POSIX Threads

POSIX threads are low-level, system-facing. Library-based (pthread.h), don’t need a compiler that understands special directives.

Thread creation:

Two classes of threads: