文件名称:TasksDotnet
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2016-07-26
- 文件大小:
- 13kb
- 下载次数:
- 0次
- 提 供 者:
- xps****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
Tasks and Task Parallel Library (TPL) : Multi-threading made easy-Introduction
It had been really long since Tasks got released as part of .Net fr a mework class library (FCL) as a wrapper over thread-pool threads. Now Microsoft strongly recommends the usage of Tasks for almost all multithreaded background running work except in a very few special cases. So it makes perfect sense to understand as to why and how tasks are better in any way than using thread class directly. What are the advantages or new features multi-threading point of view which we can leverage while using tasks. So a point wise comparison of threads and tasks is required to be proficient in using both of them.
A Note for the Attached Code
You need the following software as prerequisites to run the attached code on your computer:
Visual Studio 2012 or above
I expect the reader to be well aware of following to be able to sail through this article comfortably:
Basics of C# langauge
Basics of creating and running a Windows forms application using .Net fr a mework
Basic know
It had been really long since Tasks got released as part of .Net fr a mework class library (FCL) as a wrapper over thread-pool threads. Now Microsoft strongly recommends the usage of Tasks for almost all multithreaded background running work except in a very few special cases. So it makes perfect sense to understand as to why and how tasks are better in any way than using thread class directly. What are the advantages or new features multi-threading point of view which we can leverage while using tasks. So a point wise comparison of threads and tasks is required to be proficient in using both of them.
A Note for the Attached Code
You need the following software as prerequisites to run the attached code on your computer:
Visual Studio 2012 or above
I expect the reader to be well aware of following to be able to sail through this article comfortably:
Basics of C# langauge
Basics of creating and running a Windows forms application using .Net fr a mework
Basic know
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TasksInDotNet\App.config
.............\MainForm.cs
.............\MainForm.Designer.cs
.............\MainForm.resx
.............\Program.cs
.............\Properties
.............\..........\AssemblyInfo.cs
.............\..........\Resources.Designer.cs
.............\..........\Resources.resx
.............\..........\Settings.Designer.cs
.............\..........\Settings.settings
.............\TasksInDotNet.csproj
turtle_(1).txt