Ten Threads, Ten Thousand Increments, and a Counter That Came Up Short
Every concurrency tutorial has the same demo. Ten threads, each increments a shared counter 1,000 times, the answer should be 10,000, and without a lock it comes up short. I ran it. It came back 10,00