queue Questions

18

Solved

Can anyone suggest Go container for simple and fast FIFO/queue, Go has 3 different containers: heap, list and vector. Which one is more suitable to implement a queue?
Waltman asked 12/5, 2010 at 12:45

7

Solved

I'm using the Laravel 4's Mail::queue() to send emails, using the built in Mailgun driver. The problem is that there are multiple Mailgun domains I would like to be able to send emails from, but th...
Deirdra asked 25/2, 2015 at 22:41

5

Solved

What are the fundamental differences between queues and pipes in Python's multiprocessing package? In what scenarios should one choose one over the other? When is it advantageous to use Pipe()? Wh...
Breakaway asked 11/12, 2011 at 9:28

7

Solved

There are a few questions on how to implement a queue-like table (lock specific rows, selecting a certain number of them, and skipping currently locked rows) in Oracle and SQL Server. How can I gu...
Lepton asked 24/5, 2011 at 21:40

17

Solved

I always mix up whether I use a stack or a queue for DFS or BFS. Can someone please provide some intuition about how to remember which algorithm uses which data structure?
Moses asked 14/10, 2010 at 0:18

8

Solved

I followed the official Laravel doc to start queue in the background using supervisor in Centos 7. But whene I run this command sudo supervisorctl start laravel-worker:* I get this error laravel-w...
Flann asked 21/2, 2019 at 15:48

7

Solved

A project I'm working on uses multiple threads to do work on a collection of files. Each thread can add files to the list of files to be processed, so I put together (what I thought was) a thread-s...
Shadchan asked 7/3, 2013 at 17:56

2

I have used a lot of distribute task package, like celery, python-rq, they all depend on a external service such as redis, rabbit-mq and so on. But, usually I don't need a queue service, in anothe...
Superimpose asked 18/1, 2016 at 9:3

4

Solved

How can I clear a queue. For example I have datas in a queue, but for some reason I don't need the existing data, and just want to clear the queue. Is there any way? Will this work: oldQueue = Qu...
Hoeg asked 29/6, 2011 at 8:48

5

Solved

After a short debate with someone about exception handling in Python - sparked by the handling of a queue object - I thought I'd throw it out there... METHOD 1: import Queue q = Queue.Queue() t...
Aronoff asked 28/6, 2012 at 15:0

4

I'm trying to create a function that builds a queue from an array of objects and then processes each object by calling a number of functions. The processing functions are asynchronous functions wh...
Deary asked 9/2, 2018 at 11:42

15

Solved

I'm using ConcurrentQueue<T> for a shared data structure which purpose is holding the last N objects passed to it (kind of history). Assume we have a browser and we want to have the last 100 ...
Monthly asked 2/5, 2011 at 1:54

5

Solved

I wrote a Stack and Queue implementation (Linked List based). There is one stack (bigStack). For example, I separate bigStack (example: stackA and stackB). I pop() a node from bigStack, I push() in...
Leptosome asked 15/10, 2012 at 19:36

5

Does anyone know a pythonic way of iterating over the elements of a Queue.Queue without removing them from the Queue. I have a producer/consumer-type program where items to be processed are passed ...
Paladin asked 19/11, 2011 at 18:31

2

Solved

My goal is to create a kind of web-crawler in dart. For this I want to maintain an task queue where the elements are stored that need to be crawled (e.g URLs). The elements are crawled within the c...
Essentialism asked 13/7, 2020 at 15:6

3

Solved

I am trying to learn about creating react-native modules for iOS and there is one aspect that came up Official documentation on threading mentions this block of code alongside its variations - (d...
Theolatheologian asked 9/6, 2018 at 11:23

10

Solved

I'm looking for a implementation of java.util.Queue or something in the Google collection who behave like a Queue, but also ensure that each element of the queue is unique. (all further insertion w...
Isomerous asked 23/2, 2010 at 15:1

7

Solved

Can somebody please explain the main differences? I don't have a clear knowledge about these functions in programming for any language.
Sinful asked 8/5, 2013 at 5:37

1

Solved

The documentation of GitHub actions says: You can use jobs.<job_id>.concurrency to ensure that only a single job or workflow using the same concurrency group will run at a time. ... When a c...
Alloy asked 25/11, 2022 at 11:42

8

Solved

How can I check whether a message Queue already exists or not? I have 2 different applications, one creating a queue and the other reading from that queue. So if I run the Client which reads from...
Gudrin asked 11/8, 2010 at 10:15

12

Solved

I am using std::queue for implementing JobQueue class. ( Basically this class process each job in FIFO manner). In one scenario, I want to clear the queue in one shot( delete all jobs from the queu...
Nerland asked 2/4, 2009 at 10:16

3

I'm using Laravel 5.1. The queues are used for data fetching/syncing between several systems. I use the database driver, 3 "artisan queue:work --daemon" processes are running all the time. The j...
Kristykristyn asked 9/9, 2015 at 9:28

6

Solved

My question relates to this question asked earlier. In situations where I am using a queue for communication between producer and consumer threads would people generally recommend using LinkedBlock...

6

Solved

I have a table of items that need to be displayed in a certain order, but that order can be changed. Items can be added at the beginning, end, or in the middle, and items can be rearranged. How can...
Alexandrite asked 22/7, 2010 at 20:17

17

Solved

NSOperationQueue has waitUntilAllOperationsAreFinished, but I don't want to wait synchronously for it. I just want to hide progress indicator in UI when queue finishes. What's the best way to acco...
Exsanguinate asked 26/6, 2009 at 13:0

© 2022 - 2024 — McMap. All rights reserved.