Monday, March 17, 2008

8 Simple Rules for Designing Threaded Applications

http://www.devx.com/go-parallel/Article/37034 gives 8 Simple Rules of threading design methods.
 
1. Be sure you identify truly independent computations
2. Implement concurrency at highest level possible
3. Plan early for scalability to take advantage of increasing numbers of cores
4. Make use of thread-safe libraries wherever possible
5. Use the right threading model
6. Never assume a particular order of execution
7. Use thread-local storage whenever possible; associate locks to specific data, if needed
8. Don’t be afraid to change the algorithm for a better chance of concurrency

No comments: