4 ms·
Ring buffer. When it comes to multithreading, I avoid using things like semaphores, mutexes and locks.
by chrisbennet 8y ago
Ring buffer. When it comes to multithreading, I avoid using things like semaphores, mutexes and locks.
- sgillen 8y agoWhy do you avoid mutexes and locks? Are they just hard to make bug free when you start scaling them up?
- chrisbennet 8y agoFor me, multithreading is um complicated. I told someone once that I view people who say that “multithreading is easy” the same way I view a young man who says “I understand women.” All kidding aside, most programs require some sort of multithreading but the ones I write haven’t needed explicit mutex, semaphores or locks. (And I’ve been doing this 30+ years.)