If spinning succeeded on that same lock object in the recent history and the thread holding the lock is running, then spinning is likely to succeed again.
如果在同一个锁对象上,自旋刚刚成功过,并且持有锁的线程正在运行中,那么自旋很有可能再次成功。
A thread holding a mutex can be de-scheduled, perhaps because it was the end of its time-slice.
可能因为分配的时间片结束,持有互斥锁的线程被取消调度。
The PresentationReconciler class updates the text's appearance with every keystroke, and the Reconciler class runs in a daemon thread, parsing the document without holding up the user interface (UI).
presentationreconciler类根据每次击键更新文本的外观,而Reconciler类运行一个守护线程,不必将用户界面(UI)挂起就能解析该文档。
Likewise, if thread "c" tries to lock the mutex while thread "a" is holding it, thread "c" will also be put to sleep temporarily.
同样地,当线程a正锁定互斥对象时,如果线程c试图锁定互斥对象的话,线程c也将临时进入睡眠状态。
Despite the diverging backgrounds and interests of youth and pop culture during those decades, MTV was the one thread holding together an entire age demographic.
尽管在这几十年中,青年和流行文化的背景和兴趣不同,音乐电视就像一根线,将整个时代的人们穿在一起。
The system detects that the P3 thread is holding a lock required by the P1 thread and elevates its priority to P1 until the lock is released.
如果系统检测到P 3线程正在持有一个P 1线程需要的锁,则会把P 3线程的优先级置为P1,直到它释放了锁。
The shorter the time a thread holds a given lock, the lower the probability that another thread will request it while the first thread is holding it.
一个线程占用一个给定锁的时间越短,另一个线程在该线程仍占用锁时请求该锁的可能性就越小。
This approach doesn't waste resources, since the application isn't holding on to a thread or a process when it doesn't need them.
这种方法不会浪费资源,因为应用在不需要线程或进程的时候并不会占用它们。
While still holding the mutex lock, our thread will call pthread_cond_wait(&mycond,&mymutex).
锁定互斥对象时,线程将调用 pthread_cond_wait(&mycond,&mymutex)。
The thread is attempting to illegally call into managed code while holding the operating system's loader lock.
该线程在持有操作系统的加载程序锁的同时,尝试非法调入托管代码。
The ceasefire in Lebanon was holding by a thread last night after Israel sanctioned a commando raid in the east of the country.
昨晚,以色列批准其突击队袭击了黎巴嫩东部地区,使得黎巴嫩的停火局势更加恶化。
The top part of one inner bolt which matches the blank hole channel of the outer hollow screw is also conical. The rear is provided with a thread and a tetragonal body for holding.
一与外空心螺钉的盲孔道相匹配的内螺栓,内螺栓的尖端部位亦为锥形,尾部设有螺纹和供握持用的四方体。
The holding ring and the secondary holing ring are connected through a screw thread.
扣押环与二次扣押环通过螺纹连接。
The holding ring and the secondary holing ring are connected through a screw thread.
扣押环与二次扣押环通过螺纹连接。
应用推荐