1 year ago
#77011

James_Mann1
Non thread/cpu dependent workers? - Python
I'm looking to run a pseudo "multithreading" process which is independent of core/thread count. Is there a similar process to this where it's not cpu/thread based?
with Pool(int(Multithread_Count)) as p:
#p.map(Cas_off, Input_Casoff) #OCT10
#print(p.map(Cas_off, Input_Casoff))
print(p.starmap(Cas_off, zipped))
So i can create 64x instances of a "worker" without being limited on thread count?
For reference this is part of a larger code which takes 6000 files and processes them in intervals of 24, due to 24 threads and each thread being a worker. It takes about 4 hours using multithreading....
Best regards, James
multithreading
pool
worker
0 Answers
Your Answer