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

By far Dekker's algorithm to ensure mutual-exclusion in concurrent programming: (https://en.wikipedia.org/wiki/Dekker%27s_algorithm)

Less than 10 lines of code to create a piece of art.



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

Search: