![]() ![]() NET Framework, threads are the main mechanism for concurrent execution.įor example, this program reads integers from the console and factors them into primes, executing each factorization on a separate thread: static void Factor( long x) In order to move from sequential to concurrent programming, we need some way to do multiple things at the same time. NET concurrency primitives relate to: concurrent execution, synchronization and memory sharing. But, I will walk you through the concurrent constructs and primitives so that you understand what is out there, and know where to look for more information if you need to. Entire books have been written on concurrent programming for different platforms, so I certainly cannot fit everything into a single blog posting. NET Framework, but whenever possible, I will link to more in-depth resources on each topic. If you want to know the difference between a Thread and a BackgroundWorker, or what is the point of interlocked operations, you are reading the right article.įor each construct, I will give a motivating usage example and explain how it relates to other concurrent constructs.I will not attempt to cover everything there is to say about concurrent programming on. The goal of this post is to distill the information into an easy-to-digest high-level summary: what are the different pieces, where they differ and how they relate. ![]() NET Framework 3.5 available on MSDN, blogs, and other websites. ![]() There is a lot of information on the concurrent primitives and concepts exposed by the. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |