Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is the end result of two threads adding +1 to the same counter 1 million times each in parallel?

Well, the result is safe but unknowable. I would call that garbage data.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: