ThreadSanitizer
ThreadSanitizer, commonly abbreviated as TSan, is a dynamic data race detector for multithreaded native programs. It is part of the LLVM Sanitizers family and is widely used to identify concurrency errors in C, C++, and other languages that compile with LLVM-based toolchains.
TSan operates by instrumenting code at compile time to monitor memory accesses and synchronization operations. It
Usage and availability: To use it, compile with -fsanitize=thread (and -g for debugging information). Run the
Limitations: The instrumentation introduces substantial runtime overhead and memory usage, which can slow execution and alter