同步处理多执行绪处理的资料。
TextWriter instance that is returned. For more information about synchronization and threading, see.
具有一个以上执行绪的处理序就称为多执行绪。
Processes that have more than one thread are called multithreaded.
在执行绪之间共用资源是多执行绪程序设计常见的需求。
Sharing resources between threads is a frequent necessity in multithreaded programming.
下列主题将简介多执行绪程式设计的一些考量和最佳应用。
The following topics introduce you to some of the considerations and best practices for multithreaded programming.
侦错具有使用者介面的多执行绪应用程序可能会特别地困难。
Debugging a multithreaded application that has a user interface can be especially difficult.
一般多执行绪应用程序拥有代表执行绪之间共用资源的类别。
A typical multithreaded application has a class that represents a resource to be Shared among threads.
为了让您的多执行绪元件成为安全执行绪,您必须协调共用资源的存取。
In order for your multithreaded components to be thread-safe, you must coordinate access to Shared resources.
多执行绪:程序设计提示说明您可用来处理在这些情况中可能发生的问题的技术。
Multithreading: Programming Tips describes techniques that you can use to get around problems that might arise in these situations.
在多执行绪:如何使用同步类别和多执行绪:何时使用同步类别中说明了这些类别的用法。
Usage of these classes is described in Multithreading: How to Use the Synchronization classes and Multithreading: When to Use the Synchronization classes.
如需决定在何种情况下使用哪个同步类别的详细资讯,请参阅多执行绪:何时使用同步类别。
For information about determining which synchronization class to use in different situations, see Multithreading: When to use the synchronization Classes.
多执行绪:如何使用同步类别说明如何使用可用来同步处理从多重执行绪到单一物件之存取的类别。
Multithreading: how to use the Synchronization classes describes how to use the classes that are available to synchronize access from multiple threads to a single object.
多执行绪主题没有教授多执行绪程式设计的基本概念,只有教授如何在您的多执行绪程式中使用MFC。
The multithreading topics do not teach the basics of multithreaded programming, only how to use MFC in your multithreaded program.
因为您必须确定一次不能有一个以上的执行绪存取物件,所以撰写和侦错多执行绪程序设计会相当复杂并难以处理。
Writing and debugging multithreaded programming is inherently a complicated and tricky undertaking, because you must ensure that objects are not accessed by more than one thread at a time.
将锁定的使用限制在只用于必须完整执行的程序码,您就能够写入确保资料安全的多执行绪元件,同时还是能够保持良好效能。
Restricting your locks only to code that must be executed atomically will allow you to write multithreaded components that ensure the safety of your data while still maintaining good performance.
支援先占式多工的作业系统能够从多个处理序产生同时执行多个执行绪的效果。
An operating system that supports preemptive multitasking creates the effect of simultaneous execution of multiple threads from multiple processes.
记录大量执行绪会耗用相当多的处理器时间。
Keeping track of a large number of threads consumes significant processor time.
记录大量执行绪会耗用相当多的处理器时间。
Keeping track of a large number of threads consumes significant processor time.
应用推荐