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

> In the author's example, the fastest implementation was actually _not_ lock-free, it merely used a better spinlock than std::mutex.

The author is also using gcc 4.6; perhaps different results would be obtained with gcc 4.8 or recent Clang. If you care enough to think about LFDS, measure measure measure =).



Or glibc's pthread_mutex_t implementation. Or hand-written assembly above futex(2). There's no lack of synchronization primitives.




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

Search: