Thread Synchronization and Synchronization Primitives

added by DotNetBlocks
1/14/2011 12:08:40 AM

118 Views

When considering synchronization in an application, the decision truly depends on what the application and its worker threads are going to do. I would use synchronization if two or more threads could possibly manipulate the same instance of an object at the same time. An example of this in C# can be demonstrated through the use of storing data in a static object.


0 comments