python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
BlockingCollection alternatives?
We are using BlockingCollection to implement producer-consumer pattern in a real-time application:
BlockingCollection<T> collection = new BlockingCollection<T>();
CancellationTokenSource c...
alexk
Votes: 0
Answers: 2
Why does producer need to lock directory to create new files in Linux?
There's a producer which will download new files to a local file system (it will never modify existing files), and a consumer which periodically checks if there are new files and reads the new files.
...
ruisen2000
Votes: 0
Answers: 1
BlockingCollection where the consumers are also producers
I have a bunch of requests to process, and during the processing of those requests, more "sub-requests" can be generated and added to the same blocking collection. The consumers add sub-requ...
Adrian S
Votes: 0
Answers: 1
FIFO queue for Producer Consumer Problem Not Working
I currently am trying to implement FIFO for the producer consumer problem. However when I run the code it seems that the first item is not being removed from the buffer as the output shows that every ...
jastewart5
Votes: 0
Answers: 1