(C#) 多线程访问int, bool 等值类型变量 参考: https://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock/154803