Deciding when to go parallel C#. NET

My advice for assessing if a problem can be parallelized successfully is to just give it a try and measure the results. If a problem is difficult to write a parallel solution for, you will find out pretty quickly. If the problem can be parallelized but is affected by one or more of the caveats in the previous section, you can make an informed decision as to whether to use the parallel version or stick with the sequential implementation. Either way, you’ll have increased your exposure to, and experience with, parallel programming.

The key is measurement. Don’t just assume that a parallel solution will give you better performance and move on.


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

C#. NET Topics