When invoked if this thread already owns the lock, increment the recursion level by one, and return immediately. if thread doesn't own the lock it waits until owner release lock.
当调用如果线程已持有锁,增量递归层次一,并返回。如果线程没有等待直到主人锁释放锁。
A single arrow indicates a thread contention: One thread is waiting for another thread to release a lock.
一支单独的箭头指出一个线程竞争:一个线程正在等候另一个线程释放一个锁。
For example, assume one virtual processor is holding a lock and does not have enough cycles to release that lock.
例如,假定一个虚拟处理器持有一个锁,并且它没有足够的周期来释放这个锁。
The thread will only release the lease if another thread attempts to acquire the lock.
如果另一个线程在尝试获取锁,那么循环线程只需要释放契约就可以了。
Biasing a lock to a thread means that the thread is not required to release the lease on the lock.
将锁偏向于一个线程,意味着该线程不需要释放锁的契约。
The result was idle processors awaiting release of the runqueue lock and decreased efficiency.
结果是空闲处理器只能等待这个处理器释放出运行队列锁,这样会造成效率的降低。
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在生成线程转储时能够包括锁定信息。
An implementation of size would have to sequentially acquire the lock for each bucket, count the number of nodes in that bucket, and release the lock and move on to the next bucket.
size的实现将不得不依次获取各个bucket的锁,对该bucket中的节点进行计数,释放锁,然后继续到下一个bucket。
A lock release or lock notify operation is analogous to a scheduling dispatch operation in the sense that the thread at the head of the highest-priority queue is acted on.
锁释放或锁notify操作与调度分派操作类似,因为都是对最高优先级队列头部的线程起作用。
It is easy to forget to use a finally block to release the lock, to the great detriment of your program.
您很容易忘记用finally块释放锁,这对程序非常有害。
If multiple arrows show a circular lock-request pattern — threads prevent each other from running because they are waiting for each other to release a lock — then you have a deadlock.
如果多个箭头显示一个环形的锁请求模式—由于它们正在相互等候其它线程释放锁,所以线程彼此阻止运行—结果就形成了一个死锁。
For example, planting fast growing pine trees on grassland will help to lock up carbon in the tree, but it may also disrupt the soil and release carbon already stored in the grassland.
举例来说,虽然在草原种植快速成长的松树将有助于将碳锁在树中,但是,松树也许会分解土壤,把已经储藏于草场的碳释放出来。
For example, most of our queuing is completely lock-free in the 3.3 release, which has given us some impressive performance improvements.
例如在3.3版中,大多数队列是完全没有锁的,这让我们获得了一些大幅度的性能改进。
The combination lock was a bit more difficult, and the police have yet to release information pertaining to exactly how this was cracked.
密码锁就要困难一些:至于罪犯究竟是如何破解密码的,还有待于警方进一步公布。
Most compact cameras and all SLRs have a focus-lock capability, activated by pushing the shutter release button down halfway.
大部分的紧凑型相机和所有的单反相机都有一个焦点锁定功能,通过把快门按下一半儿来实现。
And if a lock can get stuck, it can be very difficult to make it gracefully release.
如果一个锁被挂起,顺利地释放它会很难。
So, all it will do is release the lock.
因此,它只能释放锁。
The NHRT needs to wait until the RT is no longer preempted by GC and then release the lock before the NHRT has a chance to execute.
NHRT需要一直等到RT不再被GC抢占并释放锁后才能执行。
释放全局锁:lock1。
释放全局锁:lock2。
For example, depending on a finalizer to release a persistent lock on a Shared resource such as a database is a good way to bring your entire distributed system to a grinding halt.
例如,依赖一个终结方法来释放一个共享资源,例如数据库,的持续锁,很容易引起整个分布式系统突然当掉。
Release the global interpreter lock. The lock must have been created earlier. This function is not available when thread support is disabled at compile time.
释放全局解释器锁。锁必须提前创建。这个函数在编译时禁用线程支持的情况下不可用。
Abruzzi tells Lincoln the plan is to lock James up in a moving van; they'll release him once the escape is complete.
Abruzzi告诉Lincoln,计划将James关在一个搬家货车里,等他们逃出去后就放了他。
A wide variety of options is available like sleeve lock, one-way and straight-thru designs, release clamp with chain, etc.
选择范围广,如套筒锁、单向关断、直通式及带链条的释放夹等。
The lock stops the quick release lever from opening fully.
安全锁能防止快速释放操纵杆完全打开。
While pressing the back cover lock release button, slide the back cover latch down and open the back cover.
按后盖锁定释放按钮,同时向下滑动后盖插锁,以打开后盖。 收藏。
A card reader at the lock location reads the code and sends the information to a computer, which sends a signal to release the bolt if the code is correct.
阿锁的位置在读卡机读取的代码和发送信息到电脑,这发出了一个信号,释放螺栓如果代码是正确的。
Lock the support ring onto the diverter housing and release it from the slip joint.
将隔水管张力器支撑环销到转喷器壳体上,从伸缩节上松脱。
Prevents users from checking in or checking out the specified items until you explicitly release the lock.
阻止用户在您显式释放锁之前,签入或签出任何一个指定项。
Quick Release Pin, Ball lock pin, Detent pin, Locator pin.
自主开发产品:快卸销,定位销,球锁销,快速插销,不锈钢销。
应用推荐