Skip to content Skip to sidebar Skip to footer
Showing posts with the label 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?

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

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

Data Type For A "closable" Queue To Handle A Stream Of Items For Multiple Producers And Consumers

Is there a specific type of Queue that is 'closable', and is suitable for when there are mu… Read more Data Type For A "closable" Queue To Handle A Stream Of Items For Multiple Producers And Consumers

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

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