producer-consumer
possible memory leak?
i\'m profiling the below code inside a singltone and found that a lot of Rate objects are kept in memory altough i clear them.[详细]
2023-01-15 00:30 分类:问答Producer work consistently hashing to consumers via a message queue?
I have a producer that I want to distribute work consistently across consumers by consistent hashing. For example, with consumer nodes X and Y, tasks A, B, C should always go to consumer X, and D, E,[详细]
2023-01-14 06:17 分类:问答Efficient consumer thread with multiple producers
I am trying to make a producer/consumer thread situation more efficient by skipping expensive event operations if necessary with something like:[详细]
2023-01-13 18:14 分类:问答Background consumer thread lifetime management best practices
I have a C# class library which starts up a background consumer thread (lazily) which listens for tasks to complete from a producer/consumer queue. This class library can be used from any type of .NET[详细]
2023-01-13 02:27 分类:问答RabbitMQ C# API Event based Message Consumption
while (true) { BasicDeliverEventArgs e = (BasicDeliverEventArgs)Consumer.Queue.Dequeue(); IBasicProperties properties = e.BasicProperties;[详细]
2023-01-11 08:59 分类:问答Java Thread Good Practice this way?
this is some kind of long post, so I have to say thanks for reading. My app is supposed to process a lot of soundfiles, lets say 4000+. My first approach was to load a certain amount (lets say 200mb)[详细]
2023-01-08 20:37 分类:问答How to implement one producer , multiple consumers and multiple Objects in Java?
I have a question about Producer/consumer Design pattern , in fact my situation is :I have One class that produce multiple types of messages (notifications) and multiple consumers who consume those me[详细]
2023-01-04 14:53 分类:问答Is LinkedBlockingQueue a correct choice for a producer-consumer like scenario?
I have a producer-consumer like scenario. Class A produces objects of type E. I have to hold开发者_开发知识库 it in a static data structure in class A, because the consumer logic should be handled in[详细]
2023-01-03 07:12 分类:问答what's wrong with my producer-consumer queue design?
I\'m starting with the C# code example here. I\'m trying to adapt it for a couple reasons: 1) in my scenario, all tasks will be put in the queue up-front before consumers will start, and 2) I wanted t[详细]
2023-01-02 05:38 分类:问答C++: synchronize 5 consumers to 1 producer (multithreaded)
I have five consumers and one producer. The five consumers each output different开发者_高级运维 data, from the one producer, for ~10ms. During those 10ms the producer prepares the parameters for the n[详细]
2023-01-02 02:31 分类:问答