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

The locking is also neat - no software locking, and yet you are guaranteed to get correct values. Simply read High, Low, High2, and then check that High and High2 are equal.

(Hitting the memory address will require some level of CPU level cache coherency protocol to kick in, but that's much cheaper than the equivalent mutex).



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

Search: