C# global variable thread safe July 8, 2019 16 32 64 128 Thread safe c# Thread and task in c# C# thread global variable