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

Python - What Is Queue.task_done() Used For?

I wrote a script that has multiple threads (created with threading.Thread) fetching URLs from a Que… Read more Python - What Is Queue.task_done() Used For?

Python: Interdependent Process/thread Queues

I have four queues that each have multiple processes/threads that are interdependent in the followi… Read more Python: Interdependent Process/thread Queues

Python Multiple Subprocess With A Pool/queue Recover Output As Soon As One Finishes And Launch Next Job In Queue

I'm currently launching a subprocess and parsing stdout on the go without waiting for it to fin… Read more Python Multiple Subprocess With A Pool/queue Recover Output As Soon As One Finishes And Launch Next Job In Queue

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

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

Multiprocessing - Child Process Constantly Sending Back Results And Keeps Running

Is it possible to have a few child processes running some calculations, then send the result to mai… Read more Multiprocessing - Child Process Constantly Sending Back Results And Keeps Running

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

Finding The Max Of Each Continguous Subarray Of A Given Size

I'm trying to solve the following problem in Python Given an array and an integer k, find the … Read more Finding The Max Of Each Continguous Subarray Of A Given Size