producer-consumer
Proper implementation of producer-consumer scenario and "graceful" termination of thread pool
I am working on my first multi-threaded project and thus have a couple of things that I am unsure of. Details on my setup was on a previous question, in short: I have a thread pool implemented by Exec[详细]
2023-02-17 17:14 分类:问答Java: Producer/Consumer using BlockingQueue: having the consumer thread wait() until another object is queued
I\'ve been having some thread related problems recently with a consumer that takes points. Here is the original, which works fine except for taking up a lot of cpu constantly checking the queue. The i[详细]
2023-02-15 17:29 分类:问答producer/comsumer model and concurrent kernels
I\'m writing a cuda program that can be interpreted as producer/consumer model. There are two kernels,[详细]
2023-02-14 13:45 分类:问答How to set message label using Weborb(Producer) and MSMQ
I`m adding a message in MSMQ by my flex program using this code: producer = new Producer(); producer.destination = \"VendingMachineBack\";[详细]
2023-02-14 11:52 分类:问答Multiple producers, single consumer
I have to develop a multithreaded application, where there will be multiple threads, each thread generates custom event log which need to be saved in queue (not Microsoft MSMQ).[详细]
2023-02-13 08:48 分类:问答Try Dequeue in ConcurrentQueue
The TryDequeue in ConcurrentQueue will return false if no items in Queue. If the Queue is empty I need that my queue 开发者_运维知识库will wait until new item to be added in queue and it dequeue that[详细]
2023-02-10 14:51 分类:问答C# producer/consumer / observer?
I have a producer / co开发者_开发问答nsumer queue, except that there are specific types of objects. So not just any consumer can consume an added object. I don\'t want to make a specific queue for eac[详细]
2023-01-31 03:38 分类:问答Reuse Boost thread (from threadpool) after interruption or join
At the moment I am using a producer consumer model for the rendering portion of a realtime graphics application. The consumer will continually look for data in our queue(infinite loop); however I am f[详细]
2023-01-29 18:54 分类:问答Producer-Consumer with a variation - How to synchronize with thread signal/wait?
While working on a large project I realized I was making a lot of calls to be scheduled in the future. Since these were fairly light-weight, I thought it might be better to use a separate scheduler.[详细]
2023-01-26 20:17 分类:问答Is JMS the answer to the need for a persistent blocking queue?
I\'m creating a library that consists of a Log4J appender that asynchronously sends events to a remote server.When a log statement is made, the appender will asynchronously record the event into a loc[详细]
2023-01-24 23:05 分类:问答