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).
source to share
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.
source to share
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. :)
source to share