Thread state (including associated locks).
线程状态(包括相关的锁)。
Create a new thread state object belonging to the given interpreter object.
创建一个从属于给定解释器的新线程状态对象。
It is okay to call this function when no current thread state is available.
当前线程状态当前唯一状态不可用的时候它也可以调用。
Reset all information in a thread state object. The interpreter lock must be held.
重置指定线程状态对象的所有信息。解释器锁必须捕获。
Reset all information in a thread state object. The interpreter lock must be held.
重置指定线程状态对象的所有信息。解释器锁必须捕获。 捕获状态解释。
The global interpreter lock is used to protect the pointer to the current thread state.
全局解释器锁用于保护当前线程状态的指针。
The following example switches the UI culture, but any kind of thread state change could be similarly exposed.
下面的示例切换用户界面区域性,但任何一种线程状态更改都可采用类似的方式公开。
That is, a block of code (function) that now doesn't have to be represented via thread state and registers and such.
也就是说,现在并不通过线程状态和寄存器表示代码块(函数)。
If this function returns NULL, no exception has been raised and the caller should assume no current thread state is available.
如果这个函数返回NULL,没有抛出异常,调用者会假定当前线程状态无效。
Conversely, when acquiring the lock and restoring the thread state, the lock must be acquired before storing the thread state pointer.
相反,获取锁并恢复线程状态的时候,锁必须在保存状态指针之前就获得。
You should also remember that static classes that preserve state between method calls should be made thread safe by default.
您还应该记得,在方法调用之间保留状态的静态类在默认情况下应该是线程安全的。
As soon as you implement a nontrivial class maintaining state between method calls, consumers of the class will want to know details about thread safety and performance.
一旦您实现了在方法调用之间保持状态的重要类,该类的使用者就会希望了解有关线程安全和性能的详细信息。
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.
当在一个等待函数中使用同步对象时,等待函数就会阻塞调用线程,直到同步对象的状态被设置为有信号为止。
The wait function on the event object blocks the calling thread until its state is set to signaled state.
对事件对象调用的等待函数会阻塞调用线程,直到其状态被设置为有信号状态为止。
The object pool needs to keep track of the state of each object and to be thread safe.
对象池需要跟踪每个对象的状态,而且应该是线程安全的。
Generally, it does this by maintaining awareness or state of the mapped entity class instances it is responsible for by keeping a first-level cache of instances, valid for a single thread.
通常,它通过保留对单个线程有效的一级缓存实例,维护它负责的映射实体类实例的可识别性或状态,从而做到这一点。
So when a thread is put into a wait state waiting for something to happen, it incurs a wait of some period of time.
所以把一个线程置于等待某事发生的等待状态时,它会导致一段等待时间。
A thread dump is a text file that contains a relatively short snapshot of the key aspects of the state of that JVM.
线程转储是一个文本文件,其中包含J VM状态的关键方面的一个相对较短的快照。
Instead, the timer remained in a suspended state while the UI thread was sleeping.
然而,当UI线程在睡眠时定时器却保持挂起状态。
Number of blocks and total block time: the number of instances and total elapsed time when the thread was in a BLOCKED state while invoking a method or service.
阻塞数量和总阻塞时间:在调用某个方法或服务时,处于BLOCKED状态的线程的实例数量和总占用时间。
When the waiting thread is released, the state is reset to non-signaled state.
当正在等待的线程被释放时,其状态就被设置为无信号的状态。
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.
在缺乏同步的情况下,可能会遇到某个对象引用的更新值(由另一个线程写入)和该对象状态的旧值同时存在。
First, the APC is always called in the context of the calling thread, and second, in order to be able to execute the APCs, the calling thread has to be suspended in the so called alterable wait state.
第一,APC总是在正被调用的线程的上下文中被调用;第二,调用线程必须暂停,等待状态的改变。
This section provides a breakdown of the code path each thread in a currently existing process traversed to put it in its current state.
这一部分提供代码路径的一个breakdown,当前存在的进程中的每个线程要遍历该路径,以进入其当前状态。
JSR 133 significantly strengthens the semantics of volatile, so that volatile flags can be used reliably as indicators that the program state has been changed by another thread.
JSR 133显著增强了volatile的语义,这样就可以可靠地使用volatile标志表明程序状态被另一个线程改变了。
The wait() method tells the current thread to go into an inactive state and wait for another thread to call notifyAll() on that object.
wait()方法将通知当前线程进入非活动状态,并等待另一个线对该对象调用notifyAll()。
The set-after-write technique may be useful for state replication, but it is not enough to provide thread safety.
set-after-write技巧可能对状态复制非常有用,但还不能提供线程安全。
In joinable state, another thread can synchronize on the thread's termination and recover its termination code using the function pthread_join .
在可连接状态中,另一个线程可以同步这个线程的终止,使用函数pthread_join来重新获得其终止代码。
Any thread can tell which state the queue is in by comparing tail.next to null, which is the key to enabling threads to help other threads "finish" their operation.
任何线程通过比较tail . next是否为null,就可以判断出队列的状态,这是让线程可以帮助其他线程“完成”操作的关键。
Waits occur when a thread enters a wait state of WAITING or TIMED_WAITING pending another thread's activity.
当线程进入WAITING或TIMED _ WAITING等待状态并暂停另一个线程的活动时将发生等待事件。
应用推荐