The single machine and thread regulating device respectively do the action of thread hanging, thread taking, thread discharging, thread feeding and ground thread locking.
单机和调线器分别作挂线、要线、吐线、上线、锁住底线动作。
That is, you make sure that only one thread at a time can access a certain data structure by locking and unlocking it.
这就是说,通过线程的锁定和解锁,对于某一数据结构,确保某一时刻只能有一个线程能够访问它。
The first section in grey is reporting on the alignment of these thread object so that it may work with biased locking (note all addresses end with 00).
上图中第一个灰色段显示的是这些线程的对齐,它们可以使用偏向锁(注意所有地址都以00结尾)。
There is now a locking mechanism to ensure that only one thread at a time goes through any of the wrapped calls.
现在有一个锁机制来确保每次仅能有一个线程经过任何已包装的调用。
With locking, if one thread attempts to acquire a lock that is already held by another thread, the thread will block until the lock becomes available.
使用锁定,如果一个线程试图获取其他线程已经具有的锁定,那么该线程将被阻塞,直到该锁定可用。
If this code is interrupted by another thread after executing line C3 but before completing the constructor, double-checked locking fails.
如果此代码在执行c 3行后且在完成该构造函数前被另一个线程中断,则双重检查锁定就会失败。
A locking policy is intended to affect execution behavior when more than one thread wants to acquire the same lock simultaneously.
当多个线程需要同时获取同一个锁的时候,锁定策略常常会影响执行行为。
If the lock happens to be accessed by only one thread, biased locking can be applied.
如果锁刚好只被一个线程访问,则可以使用偏向锁。
Since both the garbage collector thread and the writer thread can try to modify the global list at the same time, some kind of locking mechanism also has to be used.
因为垃圾收集器线程和写入者线程可能同时尝试修改全局列表,所以同样也需要使用某种锁定机制。
Biased locking is derived from the observation that most locks are never accessed by more than one thread during their life time.
大多数锁,在它们的生命周期中,从来不会被多于一个线程所访问。
Another reason is because when the JVM manages lock acquisition and release using synchronization, the JVM is able to include locking information when generating thread dumps.
另一个原因是因为,当jvm用synchronized管理锁定请求和释放时,JVM在生成线程转储时能够包括锁定信息。
In the original design, without locking, any syscalls made by one thread while another thread was talking to the pseudo server bypassed the pseudo design.
在最初的设计中,由于没有锁,一个线程在另一个线程与服务器对话时发起的系统调用都会绕过该p seudo设计。
Under the new memory model, this "fix" to double-checked locking renders the idiom thread-safe.
在新的内存模型中,对双重检查锁定的这个“修复”使 idiom 线程安全。
After locking that, it creates a new thread and increments threadcount; after it's done, it unlocks the mutex.
之后它创建一个新的线程同时增量threadcount;在完成之后,它解锁互斥量。
On POSIX-compliant systems, file handles are process and not thread attributes. Here are a few guidelines for using file locking.
在与POSIX兼容的系统上,文件句柄是进程属性,而不是线程属性。
No table-wide locking is needed (or even possible) to provide thread-safety when iterating the collection.
在对集合进行迭代时,不需要表范围的锁就能提供线程安全性。
To help minimize mutex allocation and locking time, the JVM manages a global lock cache and a per-thread lock cache where each cache contains unallocated pthread_mutexes.
为了帮助实现互斥锁分配和锁定时间的最小化,JVM管理一个全局锁缓存和一个单线程锁缓存,其中每个缓存包含了未分配的 pthread_mutex。
Instead of double-checked locking, use the Initialize-on-demand Holder Class idiom, which provides lazy initialization, is thread-safe, and is faster and less confusing than double-checked locking.
不使用双重检查锁定,而使用Initialize - on - demandHolderClassidiom,它提供了迟缓初始化,是线程安全的,而且比双重检查锁定更快且没那么混乱。
It implements List and is thread-safe, but its iterators will not throw ConcurrentModificationException and do not require any additional locking during traversal.
它实现了List,而且是线程安全的,但是它的迭代器不会抛出ConcurrentModificationException,遍历期间也不要求额外的锁定。
The part quality is hard to reach the product locking requirement when forming the end surface thread after piercing.
用一般先冲孔后压型的方法成形端面螺纹工件,质量很难达到产品锁紧要求。
To install, thread the N9-CD onto the hose thread outlet, the built-in non-removable locking feature prevents removal.
为了安装,要将N9-CD螺纹旋进软管螺纹出口,内置不可拆卸锁定装置防止拆卸。
From falls screw jack's thread non-self-locking action, is loaded with the brake.
自降螺旋千斤顶的螺纹无自锁作用,装有制动器。
So, no, use of your static instance is not guaranteed to be thread safe without locking.
没有,利用你的静态实例是没有锁定不能保证线程安全。
The ordinary screw jack depending on the thread self-locking action support heavy item, the structure is simple, but the transmission efficiency is low, the return trip is slow.
普通螺旋千斤顶靠螺纹自锁作用支持重物,构造简单,但传动效率低,返程慢。
The swinging rotating joint consists of spherical body, thread joint sleeve, locking screw nut, large copper washer and two spherical rings.
本发明摆动旋转接头由球型接头体,螺纹接头套,锁紧螺帽,大铜垫和两个球面转环构成。
The upgraded drum locking device has integral drum locking blocks and a float screw rod, with the antivibration performance improved and the thread clearance eliminated.
改进的穿孔机转鼓器结构,采用整体压鼓块和浮动丝杆,消除了螺纹间隙,提高了抗振性能。
The main products are divided into common type wire thread insert and locking type.
主导产品钢丝螺套分为普通型和锁紧型。
The practical structure of die casting mould with the rotational automatic thread demoulding for shell parts, the calculation of mode locking force and the process parameters were presented.
给出了罩壳零件旋转自动脱螺纹压铸模实用结构,锁模力计算和工艺参数,论述了模具工作原理和设计要点。
Since this is an old thread and the information in my original post is actually wrong I'm locking it.
由于这是一张老帖子了,并且在我原来的回帖中,信息是错误的,因此我锁定了它。
Since this is an old thread and the information in my original post is actually wrong I'm locking it.
由于这是一张老帖子了,并且在我原来的回帖中,信息是错误的,因此我锁定了它。
应用推荐