Pthreads

Posts with this tag

Posts

  • Threads, Reductions and False Sharing: Five Ways to Add Up Numbers in Parallel

    A pthreads reduction measured five ways on an eight-core laptop: one shared atomic, packed per-thread counters, padded per-thread counters, register accumulators, and dynamic chunking, with a short primer on the C11 memory model that makes the fast version correct.

    11 min read 2,004 words Category: HPC Tags: pthreads, false sharing, atomics