All Questions
4 questions
0
votes
2
answers
178
views
ThreadPoolExecutor too fast for CPU bound task
I'm trying to understand how ThreadPoolExecutor and ProcessPoolExecutors work. My assumption for this test was that CPU-bound tasks such as increasing a counter wouldn't benefit from running on ...
1
vote
1
answer
964
views
Terminate executor using ThreadPoolExecutor from concurrent.futures module
I am trying to terminate a ThreadPool based on values returned from long running request. I wish to terminate the ThreadPool once the sum of the request return values reaches MIN_REQUIRED_VALUE
I am ...
0
votes
0
answers
151
views
How to make sure concurrent.futures.ThreadPoolExecutor stores data in the correct order?
I have a dataframe that consists of all the links that I will use requests to scrape the data.
I am using concurrent.futures.ThreadPoolExecutor to loop through all the links from the dataframe and ...
1
vote
2
answers
838
views
Python: How combine returned value from 2 functions and appending them into a list using thread?
I am new to thread, I had encountered abnormal result while printing the value inside a list using thread to allow 2 functions to working at the same time and appending the result to a list. Below my ...