ReaderWriterLockSlim vs. Monitor

后端 未结 3 1659
一向
一向 2020-12-09 06:38

I have an IDictionary implementation that internally holds n other Dictionary and distributes that insertion

3条回答
  •  天命终不由人
    2020-12-09 07:35

    How do you know what caused the bad performance? You can't go guessing it, the only way is to do some kind of profiling.

    How do you handle locking for the parent collection or is it constant?

    Maybe you need to add some debug output and see what really happens?

提交回复
热议问题