ead-write lock allows multiple threads to acquire a read lock provided no other thread currently has a write lock on the same object. A thread can acquire a write lock if no other thread owns either a read lock or a write lock.
Many times in order to optimize software performance programmers use specific compiler flags that generate code tuned to a given hardware architecture. In fact, at times we’d write tight loops in assembly using processor specific instructions to squeeze that extra bit of performance. The peripheral code in “C” or C++ can [...]