做完这些之后,才可以被加锁和解锁。
我们为多线程程序添加锁。
要递增一个加锁的计数器仍然需要编写很多代码!
That's still a lot of code just to increment a counter with a lock held!
始终应该尽快对已加锁的互斥对象进行解锁(以提高性能)。
You should always unlock a mutex that you've locked as soon as safely possible (to increase performance).
在SolarisSPARC上,加锁的原子操作可以如下实现。
On Solaris SPARC, atomic operation for locking can be implemented as the following.
双钥锁允许加锁者或下一个申请者释放互斥锁。
By this replication scheme, either the lock-holder or the next applicant can unlock the corresponding exclusive locks.
在重新加锁时,考虑使用版本号来检测状态变更。
When re acquiring locks, consider using generation counts to detect state change.
在重新加锁时,考虑使用版本号来检测状态变更。
When reacquiring locks, consider using generation counts to detect state change.
在激活一个加锁对象时生成的功能模块的名字是什么?
What are the names of the function modules that will be generated upon activation of a lock object?
该方法支持多粒度锁、自动加锁特性和自动锁粒度升级特性。
This method supports multiple granularity lock, automatic lock and automatic lock escalation.
他们会让你确信,真的有一扇不加锁的门,在等待着你去开启。
Someone who convince you that there really is an unlocked door just waiting for you to open it.
如果跟文件有关的一个进程挂起了,那么这就会使虚拟机不能对该文件加锁。
If a process is hanging around that is holding onto the file, it will prevent the virtual machine from being able to get the lock on the file.
排他锁。除加锁进程外其他进程没有对已加锁文件读写访问权限。
LOCK_EX an exclusive lock. This denies all other processes both read and write access to the file.
本文对光脉冲在全光纤叠加锁模激光器中演变的动力学作了研究。
In this paper, the dynamical evolution of optical pulses in an additive pulse mode-locked configuration using a doped active fiber coupled to a nonlinear optical fiber is studied.
看起来我所找到的任何一种所谓的文件加锁的正确指南,之后又都进行了更新。
It seemed that for every guideline I found spelling out the correct way to lock files, a subsequent correction was posted.
因为他的存在,你坚信世界上存在一扇不加锁的门,只是等着你去开启。
Someone who convnces you that there really is an unlocked door just waiting for you to open it.
独占式加锁—是一种写加锁,防止数据在有用户已经在修改它时被修改。
Exclusive lock - is a write lock that prevents data from being changed while a user is already modifying it.
如果出于任何原因不能设置这个加锁,那么其结果会在返回码中反映出来。
If the lock cannot be set for any reason then this would be reflected in the return code.
这些系统对文件进行加锁,这样在某个时间只有一个开发人员对中心仓库具有写入权限。
These systems lock files so that only one developer has write access to the central repository at a time.
当您迷失时,我们会让你确信,真的有一扇不加锁的门,在等待着你去开启。
When you lose your way, we convince you that there really is an unlocked door just waiting for you to open it.
餐厅里有一个很大的壁橱空间,他可以为我做一个加锁的柜子放在那里,把银器锁在里面。
In the dining room, there was a niche large enough, he told me, for a cabinet that he could build for me, with a lock to secure my silver inside.
现介绍了守护进程的编写步骤,并给出了避免守护进程本身的多个副本相互干扰的加锁方法。
This paper gives a method of programming daemon for Linux and offers a locking methods avoiding mutual disturbance of multiple copies of daemon itself.
它证明了该CLI规范还同时保证了运行库不允许类型构造函数产生死锁的情形,除非用户代码显式采用了附加锁。
It turns out the CLI specification also guarantees that the runtime will not allow type constructors to create a deadlock situation, unless additional locks are explicitly taken by user code.
由于控制台销售价格都很低,因此它们通常都对系统进行了加锁以防止未向控制台开发者支付版税的游戏在上面运行。
Since consoles are usually sold at a loss, they are usually locked down to prevent games from running on them without the publisher paying royalties to the console developer.
由于控制台销售价格都很低,因此它们通常都对系统进行了加锁以防止未向控制台开发者支付版税的游戏在上面运行。
Since consoles are usually sold at a loss, they are usually locked down to prevent games from running on them without the publisher paying royalties to the console developer.
应用推荐