Top "Queue" questions

A queue is an ordered, first-in-first-out data structure.

PHP shell_exec wait for script to finish?

I have a PHP script that queries a database for a list of jobs to be done and fires off …

php queue shell-exec
Persistent Work Queue in C#

Imagine I want to have a small network of worker drones possibly on separate threads and possibly on separate processes …

c# .net queue message-queue
Multiprocessing Queue maxsize limit is 32767

I'm trying to write a Python 2.6 (OSX) program using multiprocessing, and I want to populate a Queue with more than …

python queue multiprocessing max-size
What is the proper way to handle (in python) IOError: [Errno 4] Interrupted system call, raised by multiprocessing.Queue.get

When I use multiprocessing.Queue.get I sometimes get an exception due to EINTR. I know definitely that sometimes this …

python error-handling queue multiprocessing ioerror
How to use Python multiprocessing queue to access GPU (through PyOpenCL)?

I have code that takes a long time to run and so I've been investigating Python's multiprocessing library in order …

python queue multiprocessing pyopencl
Java BlockingQueue with batching?

I am interested in a data structure identical to the Java BlockingQueue, with the exception that it must be able …

java queue producer-consumer blockingqueue
A priority queue which allows efficient priority update?

UPDATE: Here's my implementation of Hashed Timing Wheels. Please let me know if you have an idea to improve the …

data-structures timeout queue scheduling priority-queue
Why is there no generic synchronized queue in .NET?

I noticed that you can call Queue.Synchronize to get a thread-safe queue object, but the same method isn't available …

.net generics synchronization queue
Is it possible to move / merge messages between RabbitMQ queues?

I'm looking to know is it possible to move / merge messages from one queue to another. For example: main-queue contains …

python queue rabbitmq amqp pika
Java ThreadPoolExecutor getting stuck while using ArrayBlockingQueue

I'm working on some application and using ThreadPoolExecutor for handling various tasks. ThreadPoolExecutor is getting stuck after some duration. To …

java multithreading queue deadlock blocked-threads