Questions tagged [concurrent-queue]

Concurrent Queue is thread-safe first in - first out (FIFO) collection.

Concurrent Queue is thread-safe first in - first out (FIFO) collection/container.

Implementations

93 questions
-1
votes
1 answer

Cycle through ConcurrentQueue indefinitely using either Timer/Stopwatch based event

In my CheckQueue() method, what I want to do is constantly read from the queue (by calling the AppQ.Connect(Time)) and TryDequeue each item off of it. After some elapsed time (maybe a minute or so), I want to go back to the queue - connect again,…
Harold_Finch
  • 682
  • 2
  • 12
  • 33
-1
votes
1 answer

Concurrent queue dequeue

I am using concurrent queue and dequeue the data from queue via multiple threads by creation Action delegate Action action = () => { SubscriptionResponseModel subsModel; while (concurrentQueue.TryTake(out subsModel)) …
mahesh sharma
  • 998
  • 1
  • 7
  • 21
-2
votes
2 answers

How to ensure parallel tasks dequeue unique entries from ConcurrentQueue?

Hi I have a concurrent Queue that is loaded with files from database. These files are to be processed by parallel Tasks that will dequeue the files. However I run into issues where after some time, I start getting tasks that dequeue the same file at…
1 2 3 4 5 6
7