Personal blog

tie-02500

I’m just going through and grading students’ code from an exercise where they had to implement barrier synchronization in C++ using condition variables and what not. Someone wrote this: if ( ++finished_threads_ == threads_ ) { … } This pains me. It was a group of three students. Did everyone understand this? Is each and … [Read more…]