Error!
Success!

By tag: lock

showing:  of
0
kicks

Thread Synchronization: Ensuring Atomic Operations  (Unpublished)

An article about atomic transactions and how to maintain them using locks in C#


Kicked By:
Drop Kicked By:
0
kicks

volatile and MemoryBarrier()...  (Unpublished)

That part I knew… what we news to me is there is a better way to do volatile, and that is with an explicitly memory barrier before accessing the data member.. We have a an API for that: System.Threading.Thread.MemoryBarrier(). This is more efficient than using volatile because a volatile field r...


Kicked By:
Drop Kicked By:
0
kicks

Threading - Never Lock This Redux  (Unpublished)

Why locking on "this" can be a bad idea -- and how to lock in a safer manner.


Kicked By:
Drop Kicked By: