Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am looking for a very good c# win form multithreading tutorial from simple examples to advanced.

Basically, If you have tried any such tutorial in the past and happy then please please share with me and any little help in this regard will be highly appreciated.

I have already googled and do not think any answers with the google search link will help and the tutorial am looking for should be a complete one from A to Z on multithreading with examples.

Thanks for your time in advance
Posted
Updated 8-Apr-12 11:00am
v3

Hi! Try to read this article: "Threading in C#" from Joseph Albahari. It was very useful for me to understand basics concepts of multithreading in c#.
 
Share this answer
 
Comments
Bala Selvanayagam 8-Apr-12 17:31pm    
Thanks Vladislav
Sergey Alexandrovich Kryukov 8-Apr-12 22:45pm    
My 5.
--SA
Sergey Alexandrovich Kryukov 8-Apr-12 22:48pm    
OP is recommended to accept this answer formally (green button)
--SA
Bala Selvanayagam 9-Apr-12 4:05am    
Accepted the answer :)
Sander Rossel 9-Apr-12 5:01am    
Very nice reference. My 5.
Well, there is no simple tutorial to multithreading. First because multithreading is never easy. Second, because there are many ways to do it. Third, each version of .NET has new ways of threading and parallel programming. So dependent on what version of .NET you use you will have to use other techniques.
Personally I liked Sacha's tutorials on multithreading and TPL (Task Parallel Library, which isn't multithreading per se).
And dependent on how deep you want to get into this stuff there are simply some .NET Classes and libraries you can use that make life easier, you can try to really understand what's happening and try more advanced threading, and you can even create your own Classes or framework and apply all sorts of design patterns that work especially well with parallel or multithreaded environments.
So here are some articles that I found especially useful.

Threading:
Beginners Guide to Threading in .NET: Part 1 of n[^]
Beginner's Guide to Threading in .NET: Part 2 of n[^]
Beginner's Guide to Threading in .NET: Part 3 of n[^]
Beginners Guide to Threading in .NET: Part 4 of n[^]
Beginners Guide to Threading in .NET: Part 5 of n[^]

TPL:
Task Parallel Library: 1 of n[^]
Task Parallel Library: 2 of n[^]
Task Parallel Library: 3 of n[^]
Task Parallel Library: 4 of n[^]
Task Parallel Library: 5 of n[^]
Task Parallel Library: 6 of n[^]

Then there is stuff such as PLINQ:
Introduction to PLINQ[^]
Parallel LINQ (PLINQ)[^]

Reactive Extensions:
Reactive Extensions[^]
Fun with Rx[^]

Some other articles:
Multithreading Demystified[^]
Introduction to Parallelism in .NET 4.0[^]
Introducing .NET 4.0 Parallel Programming[^]
Asynchronous Method Invocation[^]
Patterns of Parallel Programming[^]
.NET asynchrony in the UI context[^]
System.Collections.Concurrent Namespace[^]

Well, I think I've given you enough articles to start from.
Good luck!
 
Share this answer
 
Comments
Bala Selvanayagam 8-Apr-12 17:32pm    
Thanks Naerling
Sander Rossel 8-Apr-12 17:34pm    
No problem. Don't forget to vote and accept the answer that helped you so others now you've been helped too :)
Sergey Alexandrovich Kryukov 8-Apr-12 22:47pm    
Pretty generous source of references, my 5. :-)
--SA
Sander Rossel 9-Apr-12 5:00am    
Thanks SA! By the way, how have you been? :)
Sergey Alexandrovich Kryukov 12-Apr-12 11:23am    
Not bad at all, working at interesting stuff at the moment, related to System.Reflection.Emit. Thanks you for asking. You?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900