当一执行绪将资源修改为无效状态,而接著另一执行绪尝试存取这个资源并在无效状态中使用它时,就出现竞争情形。
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.
如果您使用这个变数将参考传回类别的执行个体,则执行绪共用执行绪可以修改执行个体的成员,并当做传回值使用。
If you use this variable to pass a reference to an instance of a class, the members of the instance can be modified by the thread-pool thread and used as return values.
程序会在系统排程器将执行控制提供给程序的其中一个执行绪时执行。
A program executes when the system scheduler gives execution control to one of the program's threads.
下列主题将简介多执行绪程式设计的一些考量和最佳应用。
The following topics introduce you to some of the considerations and best practices for multithreaded programming.
将锁定的使用限制在只用于必须完整执行的程序码,您就能够写入确保资料安全的多执行绪元件,同时还是能够保持良好效能。
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.
然后西绪弗斯看着石头滚回原处,他也将重新从那里将石头推向顶峰。
Then Sisyphus watches the stone rush down in a few moments toward tlower world whence he will have to push it up again toward the summit.
您可以使用中断点筛选条件,将中断点放置在个别执行绪上。
You can use breakpoint filters to place breakpoints on individual threads.
期近将毕业离校之际,每个人的脑海都是千头万绪,每个人的心里都有千言万语。
At this graduating period, our minds must be full filled with complicated feelings and each of us have thousands of words to say.
将指定的委派伫列排入执行绪集区,但不会将呼叫堆叠散布到背景工作执行绪。
Queues the specified delegate to the thread pool, but does not propagate the calling stack to the worker thread.
唯有在存取集合之前,将所有执行绪都锁定物件,同步处理才会有效。
Synchronization is effective only if all threads lock the object before accessing the collection.
自行提供执行绪管理的主机可以随时将执行工作从其中一个实体作业系统执行绪移到另一个执行绪。
A host that provides its own thread management can move an executing task from one physical operating system thread to another at any time.
自行提供执行绪管理的主机可以随时将执行工作从其中一个实体作业系统执行绪移到另一个执行绪。
A host that provides its own thread management can move an executing task from one physical operating system thread to another at any time.
应用推荐