You are hereThreading

Threading


Tips on using Threading in your Development

Here are few Tips on using Threading in your Development.

1. Lock must not be obtained on a Value Type.
2. Protect static data with thread synchronization
3. Use thread pooling classes to optimize multi-threaded applications
4. Excessive use of thread synchronization
5. Ensure lock relesae by using try/finally block
6. Do not terminate other threads using Thread.Abort
7. Avoid providing static methods that alter static state.
8. Avoid calling static methods that call static methods on the same class.

Was that Helpful? Why not post a comment below!!!