简述活锁的定义和活锁的避免方法。
活锁是指当若干事务要对同一数据项加锁时,造成一些事务的永远等待,得不到控制权的现象。(1分)避免活锁的简单方法是采用先来先服务的策略。(1分)即让封锁子系统按请求封锁的先后次序对事务排队,数据上的锁一旦释放就批准申请队列中第一个事务获得锁。(1分)
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/525212.html
上一篇:《汉书.艺文志》著录了汉兴以来歌诗二十八家,重点在于
下一篇:The dominant sense of the word dictionary for English-speaking people is a book which presents in alphabetical order the words of English, with information as to their spelling, ( ), meaning, usage, rules of grammar, and in some, their etymology.