Skip to content

Glossary: C++ Beyond the Basics

ThreadSanitizer (TSan)

Also written: ThreadSanitizer, TSan, -fsanitize=thread

A compiler-built checker, enabled with `-fsanitize=thread -g`, that reports data races as they happen. It makes programs several times slower.

Where the book teaches it

Related terms

Data raceAddressSanitizer (ASan)