Hemant
Hemant

Reputation: 19826

References for learning to write multi-threaded application in C#?

One of library I am working on, requires support of asynchronous operations. This library communicates with external devices using serial port (RS232) which can be quiet slow.

I went through many MSDN articles but I am not feeling confident. I think if you are 100% sure that your multi-threaded application is thread-safe, then it might actually work but if you think it might work, it will surely NOT work.

Please can you suggest any articles/books to learn multi-threading in .net/C#? Something that tells me the right way to implement that in a .NET library (using right patterns etc).

I would prefer a book since a book normally covers a topic thoroughly (whereas articles normally hit a particular topic at once).

Upvotes: 2

Views: 355

Answers (4)

Russ Cam
Russ Cam

Reputation: 125528

$17.50 for a good ebook on .NET Multithreading.

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

Upvotes: 1

Quibblesome
Quibblesome

Reputation: 25409

This was my first step to learning. One of the more advanced steps is Joe Duffy's book. I'm not sure what goes inbetween, for me it was mis-understanding, disaster and woe, I hope your travels are safer. :)

Upvotes: 1

Julien Lebosquain
Julien Lebosquain

Reputation: 41243

I like this article that's quite good for understanding the base of threading, and that explains the difference between almost all synchronization/threading objects available in the .NET Framework.

Upvotes: 4

Dzmitry Huba
Dzmitry Huba

Reputation: 4521

Take a look at Managed Threading and Concurrent Programming on Windows

Upvotes: 1

Related Questions