网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Deadlock detection
释义

Deadlock detection

英语百科

Deadlock

Both processes need resources to continue execution. P1 requires additional resource R1 and is in possession of resource R2, P2 requires additional resource R2 and is in possession of R1; neither process can continue.
Four processes (blue lines) compete for one resource (grey circle), following a right-before-left policy. A deadlock occurs when all processes lock the resource simultaneously (black lines). The deadlock can be resolved by breaking the symmetry.
Two processes competing for two resources in opposite order. 
(A) A single process goes through. 
(B) The later process has to wait. 
(C) A deadlock occurs when the first process locks the first resource at the same time as the second process locks the second resource. 
(D) The deadlock can be resolved by cancelling and restarting the first process.

(A) Two processes competing for one resource, following a first-come, first-served policy. 


(B) A deadlock occurs when both processes lock the resource simultaneously. 


(C) The deadlock can be resolved by breaking the symmetry of the locks. 


(D) The deadlock can be prevented by breaking the symmetry of the locking mechanism.

In concurrent programming, a deadlock is a situation in which two or more competing actions are each waiting for the other to finish, and thus neither ever does.

In a transactional database, a deadlock happens when two processes each within its own transaction updates two rows of information but in the opposite order. For example, process A updates row 1 then row 2 in the exact timeframe that process B updates row 2 then row 1. Process A can't finish updating row 2 until process B is finished, but process B cannot finish updating row 1 until process A is finished. No matter how much time is allowed to pass, this situation will never resolve itself and because of this, database management systems will typically kill the transaction of the process that has done the least amount of work.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/19 17:59:54