Oracle® Solaris Studio 12.4: Thread Analyzer User's Guide

Exit Print View

Updated: December 2014

Benign Data Races

Some multithreaded applications intentionally enable data races in order to get better performance. A benign data race is an intentional data race whose existence does not affect the correctness of the program. The following examples demonstrate benign data races.

Note -  In addition to benign data races, a large class of applications enable data races because they rely on lock-free and wait-free algorithms which are difficult to design correctly. Thread Analyzer can help determine the locations of data races in these applications.