December 14, 2013

Atomics and locks

Advent Computing: Atomics and locks

When writing a simple program, you will normally only have a single “thread of execution”. That means that you’ll write a series of instructions for the computer, and the computer will follow them one-after-another. There might be jumps and loops (“do this five times” or...