.NET 中的并行处理、并发和异步编程Parallel Processing, Concurrency, and Async Programming in .NET

借助 .NET,可以通过多种方式来编写异步代码,以提高应用程序的用户响应速度;并能编写并行代码,以使用多个执行线程来最大限度地提升用户计算机的性能。.NET provides several ways for you to write asynchronous code to make your application more responsive to a user and write parallel code that uses multiple threads of execution to maximize the performance of your user's computer.

本节内容In This Section

异步编程Asynchronous Programming
介绍了 .NET 提供的异步编程机制。Describes mechanisms for asynchronous programming provided by .NET.

并行编程Parallel Programming
描述基于任务的编程模型,该模型简化了并行开发,使你能够通过固有方法编写高效、细化且可伸缩的并行代码,而不必直接处理线程或线程池。Describes a task-based programming model that simplifies parallel development, enabling you to write efficient, fine-grained, and scalable parallel code in a natural idiom without having to work directly with threads or the thread pool.

介绍了 .NET 提供的基本并发和同步机制。Describes the basic concurrency and synchronization mechanisms provided by .NET.