在一个执行绪中所作的变更不会反映在另一个执行绪中。
Changes made in one thread would not be reflected in the other.
记录大量执行绪会耗用相当多的处理器时间。
Keeping track of a large number of threads consumes significant processor time.
执行绪是作业系统配置处理器时间的指令序列。
A thread is a sequence of instructions to which the operating system allocates processor time.
允许侦错工具拦截目前在执行绪上的例外状况。
Allows a debugger to intercept the current exception on a thread.
排程器会判断应执行哪一个执行绪及执行的时机。
在执行绪之间共用资源是多执行绪程序设计常见的需求。
Sharing resources between threads is a frequent necessity in multithreaded programming.
影响控制项的方法应只在建立控制项所在的执行绪上执行。
Methods that affect controls should be executed only on the thread on which the control was created.
暂止目标执行绪之后,取得目标执行绪的现行暂存器内容。
After the target thread is suspended, get the target thread's current register context.
侦错具有使用者介面的多执行绪应用程序可能会特别地困难。
Debugging a multithreaded application that has a user interface can be especially difficult.
取得在程序被停止以进行侦错时,执行绪正在执行程序码的位址。
Gets the address at which the thread was executing code at the time the process was stopped for debugging.
中断点筛选条件会限制指定之电脑、处理序和执行绪的中断点行为。
A breakpoint filter limits the behavior of a breakpoint to specified computers, processes, and threads.
程序会在系统排程器将执行控制提供给程序的其中一个执行绪时执行。
A program executes when the system scheduler gives execution control to one of the program's threads.
在一个以上的执行绪可能要存取相同物件的情况中,应该要特别注意。
Special attention should be given to situations where more than one thread might require access to the same object.
多个执行绪可能需要存取共用资料库,或是对一组系统变数进行更新。
Multiple threads may need to access a Shared database, for instance, or make updates to a set of system variables.
跨执行绪相依性表示评估程式码需要暂时执行应用程式中的其他执行绪。
A cross-thread dependency means that evaluating the code requires other threads in your application to run temporarily.
背景工作执行绪通常是用来完成不需要使用者输入的工作,例如重新计算。
Worker threads are commonly used to complete tasks, such as recalculation, that do not require user input.
例如,一个执行绪更新结构的内容时,另一个执行绪读取相同结构的内容。
For example, one thread could be updating the contents of a structure while another thread is reading the contents of the same structure.
目前执行绪已进入读取模式,因此尝试进入写入模式锁定可能会造成死结。
The current thread has entered read mode, so trying to enter the lock in write mode would create the possibility of a deadlock.
更明确地说,它可以维持与可能同时修改集合的其他执行绪的适当同步处理。
Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the collection.
支援先占式多工的作业系统能够从多个处理序产生同时执行多个执行绪的效果。
An operating system that supports preemptive multitasking creates the effect of simultaneous execution of multiple threads from multiple processes.
例如,高优先权执行绪处理时间紧急的工作,而低优先权执行绪执行其他工作。
For example, a high-priority thread manages time-critical tasks, and a low-priority thread performs other tasks.
所以某些形式的互斥是必要的,才能确保同时间只有一个执行绪在存取该资源。
Some form of mutual exclusion is necessary to make sure that only one thread is accessing the resource at a time.
如果多个执行绪同时尝试存取共用资源,就可能造成竞争情形而使得资料损毁。
If multiple threads attempt to access a Shared resource at the same time, race conditions can result, causing corruption of data.
使用者介面执行绪通常是用来处理使用者输入并回应使用者所产生的事件和讯息。
User-interface threads are commonly used to handle user input and respond to events and messages generated by the user.
由于每段时间极短,因此即使只有一个处理器,多个执行绪看起来还是像同时执行一样。
Because each time slice is small, multiple threads appear to be executing at the same time, even if there is only one processor.
让两个或更多的执行绪同时存取相同的资料,可能会造成不希望发生和无法预期的结果。
Having two or more threads simultaneously access the same data can lead to undesirable and unpredictable results.
因此,若要避免无效的资料,在设定值之前您必须锁定应用程序状态,只能让一个执行绪写入。
Therefore, to prevent invalid data, you must lock application state for writing by only one thread before setting values.
多执行绪主题没有教授多执行绪程式设计的基本概念,只有教授如何在您的多执行绪程式中使用MFC。
The multithreading topics do not teach the basics of multithreaded programming, only how to use MFC in your multithreaded program.
多个执行绪的平行处理可以大幅改进程式效能,但由于带来了追踪多个执行绪的需要,也可能会增加侦错的困难度。
Parallel processing of multiple threads can greatly improve program performance, but it can also make debugging more difficult because it introduces the need to keep track of multiple threads.
当一执行绪将资源修改为无效状态,而接著另一执行绪尝试存取这个资源并在无效状态中使用它时,就出现竞争情形。
A race condition exists when a thread modifies a resource to an invalid state, and then another thread attempts to access that resource and use it in the invalid state.
应用推荐