Skip to content Skip to sidebar Skip to footer
Showing posts with the label Queue

Priority Queue With Two Priority Values

As it is good known, elements which are inserted to the priority queue have a value which determine… Read more Priority Queue With Two Priority Values

Sharing Queue Between Threads Running In Different Modules

I have some modules in different packages for my project. This project requires several threads whi… Read more Sharing Queue Between Threads Running In Different Modules

Nonblocking Queue Of Threads

I want to create simple queue of threads. THREADS WILL START WITH POST REQUEST I created simple exa… Read more Nonblocking Queue Of Threads

Send One-way Message To All Threads In Python

I need to send information to every thread that's running in my program, and every thread has t… Read more Send One-way Message To All Threads In Python

How To Run A Thread More Than Once In Python

I am trying to run a thread more than once and keep getting an error: RuntimeError: threads can onl… Read more How To Run A Thread More Than Once In Python

Python Queue Get()/task_done() Issue

My consumer side of the queue: m = queue.get() queue.task_done() Questions: Does task_done() ef… Read more Python Queue Get()/task_done() Issue

Multiprocessing Queue Batch Get Up To Max N Elements

I need to get as many items as I can from a queue (up to N), in a blocking fashion. e.g: queue.get(… Read more Multiprocessing Queue Batch Get Up To Max N Elements

How Do I Run Background Job In Flask Without Threading Or Task-queue

I am building REST API with Flask-restplus. One of my endpoints takes a file uploaded from client a… Read more How Do I Run Background Job In Flask Without Threading Or Task-queue