辅助线程是标准系统池的一部分。
描述如何使用系统管理的辅助线程池。
Describes how to run procedures on separate threads at fixed intervals.
此方法不将调用堆栈传播到辅助线程。
This method does not propagate the calling stack to the worker thread.
该示例创建两个辅助线程。
创建辅助线程是一个相对较为简单的任务。
线程分为辅助线程(工作者线程)和用户界面线程。
Threads are divided into Worker Thread and User Interface Thread.
重新计算和后台打印等任务是很好的辅助线程示例。
Tasks such as recalculation and background printing are good examples of worker threads.
在某些情况下,使用辅助线程处理小作业肯定比较容易。
Certainly, in some small cases, it's a bit easier to fire off of a helper thread to handle small jobs.
当连接到达时,接受线程只是衍生一个辅助线程来进行处理。
When a connection arrived, the accept thread would simply spin off a worker thread for processing.
不过,可以创建辅助线程,以便与主线程一起并行执行代码。
However, auxiliary threads can be created and used to execute code in parallel with the primary thread.
但在我们的方案中,用户界面线程还要等待辅助线程提交事务。
However, in our scenario, the UI thread is also waiting for the worker thread to commit the transaction.
若没有主线程与辅助线程的通信,CPU将被阻塞很长一段时间。
Without the communications between main thread and worker thread, CPU would be locked for a long time.
下面的示例演示如何创建辅助线程,并用它与主线程并行执行处理。
The following example demonstrates how an auxiliary or worker thread can be created and used to perform processing in parallel with that of the primary thread.
标题包含组的说明(如“辅助线程”或“未标记的线程”)和树控件。
The heading contains a group description, such as "Worker Thread" or "Unflagged Threads," and a tree control.
主线程是一个基于对话框的控件,辅助线程是一个耗时很长的循环计数。
The main thread was a controls based on dialog, the worker thread was a circulation of counting lasting a long time.
有关从辅助线程到调用方进行通信的信息,请参见多线程处理:编程提示。
For information about communicating from the worker thread to the caller, see Multithreading: Programming Tips.
当辅助线程完成一个框架后,UI 线程添加更改的矩形并取消锁定缓冲区。
When the worker thread has finished a frame, the UI thread adds changed rectangles and unlocks the buffer.
获取或设置一个值,该值指示是在辅助线程还是在活动上下文中执行对象创建。
Gets or sets a value that indicates whether to perform object creation in a worker thread or in the active context.
把那些耗时多的任务安排在后台并由辅助线程实现,从而系统可按优先级来调度它们。
We arrange those tasks need more time span as backstage tasks which to be performed by worker threads. So the system can schedule them by priority.
例如,辅助线程经常用在服务器应用程序中,以便无需等待前面的请求完成即可响应传入的请求。
For example, worker threads are often used in server applications to fulfill incoming requests without waiting for the previous request to be completed.
常见的策略是使用辅助线程执行不需要大量占用其他线程所使用的资源的、耗时较多的任务或时间要求紧迫的任务。
A common strategy is to use worker threads to perform time-consuming or time-critical tasks that do not require many of the resources used by other threads.
常见的策略是使用辅助线程执行不需要大量占用其他线程所使用的资源的、耗时较多的任务或时间要求紧迫的任务。
A common strategy is to use worker threads to perform time-consuming or time-critical tasks that do not require many of the resources used by other threads.
应用推荐