( Edit : for clarification, my main goal is concurrency, but not necessarily for multi-core machines)
I am new to all concepts on concurrency, but I realized that I need to have parallel drawing procedures for several reasons:
- I would like to separate the different parts of the graph separately (the background is updated less often than the foreground, it is saved in the buffer).
- I need control over priority (more priority for responding to the user interface than drawing complex graphics).
- I would like the frame drawing calculations to be multi-threaded.
- I wanted to offer a cancellation for complex drawing procedures on the buffer.
However, being such a newbie, my code soon looked like a mess, and refactoring or fixing bugs became so uncomfortable that I decided that I needed to play more with it before doing anything serious.
So, I would like to know how to make clean, easy to use .NET multi-threaded code that makes sense when I look at it after waking up the next day. The biggest problem I encountered was structuring the application, so all the parts communicate with each other in a smart (as opposed to uncomfortable and hacked) way.
Any suggestion is welcome , but I prefer sources that I can digest in my free time (for example, no more than 500 pages on concurrency) and for C # / VB. NET, to the latest version (as I see it moving forward ). Basically, I want something straight to the point, so I can start by playing with the concepts of my toy projects.
Camilo martin
source share