concurrent-collections
Consume a ConcurrentQueue in a Linq statement
If I have a ConcurrentQueue, is there a preferred way to consume it with a Linq statement? It doesn\'t have a method to dequeue all the items as a sequence, and it\'s enumerator doesn\'t remove items.[详细]
2023-04-04 01:55 分类:问答What to add for the update portion in ConcurrentDictionary AddOrUpdate
I am trying to re-write some code using Dictionary to use ConcurrentDictionary. I have reviewed some examples but I am still having trouble implementing the AddOrUpdate function. This is the original[详细]
2023-03-27 16:59 分类:问答How to sort a concurrent collection in .NET 4.0
How to sort a concurrent collection in .NET 4.0 For e开发者_如何学运维xample I have constructed my ConcurrentBag collection. How can I sort the elements in it?[详细]
2023-03-26 15:56 分类:问答AutoResetEvent process?
private ConcurrentQueue<Data> _queue = new ConcurrentQueue<Data>(); private AutoResetEvent _queueNotifier = new AutoResetEvent(false);[详细]
2023-03-21 01:57 分类:问答How to implement a concurrent Set that maintains insertion order
I am in the need of a Set implementation that will let me maintain insertion order and still be concuurently modifiable (as in not throw ConcurrentModificationException). I tried using ConcurrentSkip[详细]
2023-03-15 10:14 分类:问答What's the 'mostly-concurrent garbage collector'?
I know concepts of stop-the-wo开发者_如何学编程rld, incremental, parallel, concurrent, (soft/hard) realtime garbage collectors. But I can\'t understanding mostly-concurrent GC. Is it different with co[详细]
2023-03-15 02:37 分类:问答ConcurrentSkipListSet and replace remove(key)
I am using ConcurrentSkipListSet, which I fill with 20 keys. I want to replace these keys continuously. However, ConcurrentSkipListSet doesn\'t seem to have an atomic replace function.[详细]
2023-03-14 23:09 分类:问答Memory leak in weakValue map reference for synchronized method
I am creating an interface for executing methods concurrently, while abstracting away the synchronization details (To swap for a distributed implementation when needed). I\'ve created a single jvm imp[详细]
2023-03-14 11:01 分类:问答Accessing the youngest element of a ConcurrentQueue in presence of multiple threads operating on the queue
We have a ConcurrentQueue which is used to share data among 3 threads. Thread A continuously fills the queue with data. Thread B is designed to record this data to a file. Thread C is supposed to retr[详细]
2023-03-05 20:12 分类:问答What thread-safe collection classes are available in Silverlight 4?
I am developing an application framework that will be utilized by Silverlight on the client side and .NET 4 on the server side. Internally, the framework has dictionary and queue data structures where[详细]
2023-03-01 21:48 分类:问答