gpt4 book ai didi

multithreading - Delphi MREW 实现对读者有利吗?

转载 作者:行者123 更新时间:2023-12-03 15:47:23 25 4
gpt4 key购买 nike

是否有 MREW(多读、独占写)锁的 Delphi 实现,它有利于读而不是写?

最佳答案

我认为TMultiReadExclusiveWriteSynchronizer已经受到读者的青睐。

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 单元中。

关于multithreading - Delphi MREW 实现对读者有利吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1742915/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com