可从线程对象中检索特定异常。
The specific exception can be retrieved from the thread object.
这些线程与相应的托管线程对象相关联。
These threads are associated with a corresponding managed thread object.
显示应用程序中当前托管线程对象的数目。
Displays the number of current managed thread objects in the application.
暂停当前正在执行的线程对象,让其他线程执行。
Causes the currently executing thread object to temporarily pause and allow other threads to execute.
函数在此参数中接收的值是在创建线程对象时传递到构造函数的值。
The value the function receives in this parameter is the value that was passed to the constructor when the thread object was created.
具有不同生存期的对象之间的引用规则可能会禁止线程对象自身的成员变量包含对这些对象的引用。
The rules for references between objects of different lifetimes may prohibit member variables in the thread object itself from containing references to these objects.
显示公共语言运行时创建和拥有的、作为托管线程对象的基础线程的本机操作系统线程的数目。
Displays the number of native operating system threads created and owned by the common language runtime to act as underlying threads for managed thread objects.
关闭一个线程句柄不回结束关联的线程。要移除一个线程对象,你必须结束线程,然后关闭所有的线程句柄。
Closing a thread handle does not terminate the associated thread. To remove a thread object, you must terminate the thread, then close all handles to the thread.
这个跟踪以根集开始,它由一些内部结构组成,比如线程栈和对象的全局引用。
This tracing starts with the root set, which consists of internal structures such as thread stacks and global references to objects.
POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。
POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.
如果进行调用的线程并不拥有那个互斥对象,则这个调用可能会失败。
This call might fail if the calling thread does not own the mutex object.
当线程执行到所有已知对象都不再被引用的时候,内存域就可以被释放了。
When the thread execution finishes all objects are known to no longer be referenced and the area can be freed.
任务是存储对象和端口的线程和访问权限的集合。
A task is a collection of threads and access rights to memory objects and ports.
这些区别包括令牌附加的对象(线程、主题)、传播的方向(下游、水平)、以及使用它的目的(身份验证)。
Such differences include what the token is attached to (thread, subject), in which direction it is propagated (downstream, horizontal), and what it is used for (authentication).
线程1在 //3处返回这个对象。
当发生这种情况时,没有获得锁的线程被置于对象的锁争用者的一个逻辑队列中。
When this happens, the thread failing to acquire the lock is put into a logical queue of lock contenders for the object.
互斥对象是线程程序必需的工具,但它们并非万能的。
Mutexes are necessary tools for threaded programs, but they can't do everything.
这是被从派生线程发送来的对象。
释放锁以后,系统从争用者的最高优先级队列的前端选择线程,以便试图锁定对象。
When a lock is released, the system chooses the thread from the front of the highest-priority queue of contenders to try to lock the object.
当在一个等待函数中使用同步对象时,等待函数就会阻塞调用线程,直到同步对象的状态被设置为有信号为止。
When the synchronization object is used in one of the wait functions, the wait function blocks the calling thread until the state of the synchronized object is set to signaled.
当线程经过合作对象时,事务管理程序使用线程的事务上下文来执行所有的工作。
As the thread passes through the collaborating objects, the transaction manager USES the thread's transaction context to perform all work.
在每个执行(或者,在此将其称为迭代)期间,线程可以分配很多对象。
During each execution (or, as I'll refer to it now, iteration), the thread can allocate a number of objects.
这些对象只供线程组中的线程访问。
These objects are accessible only by threads within the group of threads.
在缺乏同步的情况下,可能会遇到某个对象引用的更新值(由另一个线程写入)和该对象状态的旧值同时存在。
In the absence of synchronization, it is possible to see an up-to-date value for an object reference that was written by another thread and still see stale values for that object's state.
我们已经知道,IOCP仅仅是一个线程同步对象,有点像信号量(semaphore),因此IOCP并不是一个难懂的概念。
We have already stated that IOCP is nothing but a thread synchronization object, similar to a semaphore, therefore IOCP is not a sophisticated concept.
Mach提供一些基本的抽象概念:端口,消息,任务,线程,以及存储对象。
Mach provides a few basic abstractions: ports, messages, tasks, threads, and memory objects.
记住定时回调功能是在一个工作者线程上执行的,所以你必须确保访问state对象的线程安全。
Keep in mind that the timer callback function is executed on a worker thread, so you'll want to ensure that you have thread-safe access to the state object.
记住定时回调功能是在一个工作者线程上执行的,所以你必须确保访问state对象的线程安全。
Keep in mind that the timer callback function is executed on a worker thread, so you'll want to ensure that you have thread-safe access to the state object.
应用推荐