Windows C#多线程教程 [英] Windows C# multithreading tutorial

查看:146
本文介绍了Windows C#多线程教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个很好的c#win形式的多线程教程,从简单的示例到高级.

基本上,如果您过去曾经尝试过任何此类教程并且很高兴,那么请与我分享,在这方面的任何小帮助将不胜感激.

我已经用谷歌搜索过,并且认为使用谷歌搜索链接没有任何答案会有所帮助,并且本教程正在寻找的教程应该是一个完整的从A到Z的多线程示例实例.

谢谢您提前抽出时间

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

推荐答案

嗨!尝试阅读这篇文章:Joseph Albahari的"C#中的线程" .对我来说,了解c#中多线程的基本概念对我非常有用.
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#.


好吧,没有简单的多线程教程.首先,因为多线程绝非易事.其次,因为有很多方法可以做到这一点.第三,每个.NET版本都有新的线程和并行编程方式.因此,取决于所使用的.NET版本,您将不得不使用其他技术.
我个人很喜欢Sacha关于多线程和TPL(任务并行库,本身不是多线程)的教程.
根据想要深入了解这些东西的程度,可以使用一些可以简化生活的.NET类和库,您可以尝试真正了解正在发生的事情并尝试更高级的线程,甚至可以创建您自己的类或框架,并应用各种设计模式,这些模式在并行或多线程环境中特别有用.
因此,这里有一些我觉得特别有用的文章.

穿线:
.NET中的初学者指南:第1部分的n [《入门指南》中的.NET:n的第2部分 [《入门指南》中的.NET:n的第3部分 [ .NET中的初学者指南:第4部分n [ .NET中的初学者指南:第5部分n [任务并行库:n之1 [任务并行库:2个,共n个 [任务并行库:3之3 [任务并行库:n之4, [任务并行库:第5个,共n个 [任务并行库:6个,共n个 [ PLINQ简介 [并行LINQ(PLINQ) [反应性扩展 [与Rx一起玩 [解密多线程 [ .NET 4.0中的并行性介绍 [ ^ ]
.NET 4.0并行编程简介 [异步方法调用 [并行编程模式 [ .NET异步 [ System.Collections.Concurrent命名空间 [
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!


这篇关于Windows C#多线程教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆