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

Why I Need Cancel Tasks In This Queue Example?

Well I am looking into python documentation for study for my work. I am new to python and also prog… Read more Why I Need Cancel Tasks In This Queue Example?

Python Multithreading Missing Data

useI am working on a python script to check if the url is working. The script will write the url an… Read more Python Multithreading Missing Data

No Performance Gain After Using Multiprocessing For A Queue-oriented Function

The real code I want to optimize is too complicated to be included here, so here is a simplified ex… Read more No Performance Gain After Using Multiprocessing For A Queue-oriented Function

Python 2.6 Send Connection Object Over Queue / Pipe / Etc

Given this bug (Python Issue 4892) that gives rise to the following error: >>> import mult… Read more Python 2.6 Send Connection Object Over Queue / Pipe / Etc

Python Multiprocessing Queue Is Empty Although It Is Filled In A Different Thread

I have now tried to resolve this issue for multiple hours but no matter what I do, I never get the … Read more Python Multiprocessing Queue Is Empty Although It Is Filled In A Different Thread

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