Skip to content

Two writers, no lock

Two processes share a memory region holding a counter. Both execute counter = counter + 1 ten thousand times, with no synchronisation.

What is the final value?