Links for learning how to write a multithreaded application in C #?

One of the libraries I'm working on requires support for asynchronous operations. This library communicates with external devices using the serial port (RS232), which can be slow.

I have looked through many MSDN articles but I am not sure of myself. I think if you are 100% sure that your multithreaded application is thread safe, then this might work, but if you think it might work, it will NOT work .

Please can you suggest any articles / books to learn multithreading in .net / C #? Something that tells me the correct way to implement this in a .NET library (using the correct templates, etc.).

I would prefer a book, as a book usually covers the entire topic (whereas articles usually fall into a specific topic at once).

+2


source to share


4 answers


I like this article , which is good enough to understand the basics of streaming, and it explains the difference between almost all synchronization / streaming objects in the .NET Framework.



+4


source


Have a look at Controlled Threads and Parallel Programming on Windows



+1


source


This was my first step towards learning. One of the more advanced steps is the Joe Duffy book . I'm not sure what goes between them, for me it was a misunderstanding, disaster and grief, I hope your travels are safer. :)

+1


source


$ 17.50 for a good book on .NET Multithreading .

Chapter 1 and Chapter 9 available on site to get a taster.

+1


source







All Articles