Delphi MREW的实施是否对读者有利? [英] Delphi MREW implementation that favors readers?
本文介绍了Delphi MREW的实施是否对读者有利?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有Delphi实现的MREW(多次读取,独占写入)锁,它优先于读取而不是写入?
Is there a Delphi implementation of an MREW (multiple read, exclusive write) lock, that favors reading over writing?
推荐答案
我认为 TMultiReadExclusiveWriteSynchronizer 已经吸引了读者.
I think the TMultiReadExclusiveWriteSynchronizer already favors readers.
正如组件名称所暗示的那样, 存在以下情况时应使用TMREWS 多读书少写 完毕.另外,READ操作 否则应保持最小值 您的写线程可能会被留下 无限期地等待.
As the name of the component implies, a TMREWS should be used when there is much reading and little writing to be done. In addition, the READ operations should be kept to a MINIMUM otherwise your write threads could be left waiting indefinitely.
它在SysUtils单元中.
It is in the SysUtils unit.
这篇关于Delphi MREW的实施是否对读者有利?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文