All Questions
5 questions
0
votes
0
answers
28
views
Two functions having scheduler and running parallelly using ProcessPoolExecuter
I am trying to execute two functions parallelly using multiprocessing module in another function and each function have schedule module running once the functions are called. When I run the ...
0
votes
1
answer
134
views
How to get count of threads from user and start Thread Python
I can start function with my own count of threads and it works:
start_time = time.time()
t1 = Thread(target=time.sleep, args=(3, ))
t2 = Thread(target=time.sleep, args=(3, ))
t1.start()
t2.start()
t1....
5
votes
1
answer
4k
views
Python2: multiprocessing.dummy.Pool vs multiprocessing.pool.ThreadPool
In python 2, is there any difference between multiprocessing.dummy.Pool and multiprocessing.pool.ThreadPool? The source code seems to imply they're the same.
0
votes
1
answer
214
views
Python - Running many different types of threads without exhausting resources
I am attempting to do some clean multi-threading but maybe my approach is wrong.
I have a BaseFix Thread class with 6 different types of children, one of which is CommandFix Thread, another is ...
2
votes
1
answer
570
views
Cannot fully utilise all cpu using multiprocessing.pool.ThreadPool Module
I have a 32 core machine , using multiprocessing.pool.ThreadPool library to generate ThreadPool of Size 32. I have given the sample snippet in my case 2 D Array is huge.
from multiprocessing.pool ...