the locking of [noun]
常用于描述对某物的锁定动作。
The locking of the file prevents unauthorized access.
文件的锁定防止未授权访问。
加锁;锁定
使用锁或互斥量限制代码某部分最多只能被一个进程访问
使用锁或互斥量限制代码某部分最多只能被一个进程访问
The use of a lock or a mutex to restrict access to a part of the code to at most one process.
The locking of the door is essential before leaving.
出门前锁门是必不可少的。
用法提示:这里'locking'作为名词,表示锁门的动作。
He checked the locking on all the windows.
他检查了所有窗户的锁闭情况。
用法提示:这里'locking'作为名词,指锁闭的状态或动作。
The automatic locking system engages when the car reaches a certain speed.
当汽车达到一定速度时,自动锁定系统会启动。
用法提示:这里'locking'作为名词,是锁定系统的一部分。
常用于描述对某物的锁定动作。
The locking of the file prevents unauthorized access.
文件的锁定防止未授权访问。
与动词搭配表示执行锁定操作。
The system supports automatic locking.
系统支持自动锁定。
表示在锁定过程中的情况。
There is a delay in locking the database.
锁定数据库有延迟。
与 locking 最接近,但更强调“互斥”这一概念或机制,而非加锁的具体动作。
范围更广,涵盖排序、等待等协调方式,不一定通过锁实现。
强调把并发变成串行,常用于数据库事务等场景,不如 locking 通用。
侧重访问状态或权利,而非加锁这一动作本身。
grammar · medium
易错句子There are two lockings on the door.
正确表达There are two locks on the door.
在计算机或安全语境中,'locking'通常指锁定这一过程,为不可数名词;而'lock'是可数名词,指具体的锁具或锁定状态。因此,表达具体数量时应使用'lock'。
grammar · medium
易错句子The locking door is secure.
正确表达The locked door is secure.
'locking'为动名词或名词,不能直接修饰名词作形容词;表示‘锁着的’应用过去分词'locked'作形容词。
在并发编程中,locking 指加锁互斥访问;其反义为 unlocking(解锁、释放锁)。
locking 强调将某物锁住以保护,blocking 强调阻止通过或前进,侧重障碍。
locking 是物理或逻辑上的锁定以保护,latching 特指电子电路中保持状态直到复位。
锁机制
The database uses a locking mechanism to prevent concurrent writes.
数据库使用锁机制防止并发写入。
加锁协议
The two-phase locking protocol ensures serializability in transactions.
两阶段加锁协议确保事务的可串行化。
锁粒度
Choose the locking granularity to balance concurrency and overhead.
选择锁粒度以平衡并发性和开销。
加锁开销
Excessive locking overhead can slow down the system.
过多的加锁开销会拖慢系统。
两阶段加锁
Two-phase locking is a common concurrency control method.
两阶段加锁是一种常见的并发控制方法。
lock(锁,词根)+ -ing(名词后缀)
un-(表相反)+ lock(锁)
dead(死的)+ lock(锁)
lock(锁)+ -er(表物/人)
code(代码)+ -ing(名词后缀,去 e)
并发编程中,多个进程互相等待锁而导致程序无法继续执行的状态,与锁的使用密切相关。
一种常见的锁机制,用于保证同一时刻只有一个进程访问共享资源。
另一种同步原语,用于控制对共享资源的访问数量,常与锁配合讨论。
多个进程同时访问共享资源且执行顺序影响结果的情况,锁常用于避免此类问题。
多个进程或线程同时执行的概念,锁是管理并发访问的重要工具。
争执,冲突(with someone)
The two teams have been locking horns over the new policy all week.
这两个团队整整一周都在为新政策争执不休。
亡羊补牢(为时已晚)
Calling a plumber now is like locking the stable door after the horse has bolted.
现在才打电话叫水管工,就像马跑了才去锁马厩门,为时已晚。
Dictionary facts from AI_FALLBACK, ECDICT, WIKTIONARY.