简体   繁体   English

需要.Net / C#分布式锁管理器

[英].Net/C# distributed lock manager needed

I'm looking for a lock manager implementation that I can use to protect various resources in my distributed application. 我正在寻找一个锁管理器实现,我可以用它来保护我的分布式应用程序中的各种资源。 Looking for standard read/write/read upgrade capabilities. 寻找标准的读/写/读取升级功能。

Any ideas? 有任何想法吗?

Consider using a ConcurrentDictionary . 考虑使用ConcurrentDictionary It can have many locks for efficient concurrent interactions, and its methods strongly encourage concurrent thinking, such as AddOrUpdate and GetOrAdd , both of which have overloads with functions and objects. 它可以有很多锁用于高效的并发交互,它的方法强烈鼓励并发思考,例如AddOrUpdateGetOrAdd ,它们都有函数和对象的重载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM