.net 多線程同步方式總結

在多線程開發中,共享對象的同步是常常遇到的問題,如下總結了C#中線程同步的幾種技術:多線程 1,InterLocked原子操做併發 Decrement(ref int location);遞減1post Add(ref int location1, int value);location1+value spa Increment(ref int location);遞增1 線程 2,Mutex互斥
相關文章
相關標籤/搜索