Interlocked class provides methods by which you can achieve following functionalities in a synchronization mode:
Increment Values.
Decrement values.
Exchange values between variables.
Compare values from any thread.
Example : System.Threading.Interlocked.Increment(intVal)
No comments:
Post a Comment