C# thread safe instance variable July 8, 2019 16 32 64 128 C++ thread loop Difference between coroutine and thread