2. Dev Learning
Overview
thread safety
compile with:
gcc -fsanitize=thread -pie -fPIC -ltsan -g simple_race.c
it uses ThreadSanitizer, a tool from Google to detect race conditions in the code.
undefined behavior sanitizer
https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html
It allows you to compile code with a runtime checker to make sure that you don’t do undefined behavior for various categories.