C# thread safe local variable July 8, 2019 16 32 64 128 C# local variable thread safe C# static method local variables thread safe C++ thread loop