4 ms·
"I have successfully used Python's threads to perform concurrent database fetches, http page getters, file uploads in parallel. Yes, there was almost linear spe
by raverbashing 13y ago
"I have successfully used Python's threads to perform concurrent database fetches, http page getters, file uploads in parallel. Yes, there was almost linear speedup"
Yes, for that, the Python threading model works fine.
The problem is if you're doing a lot of processing on the threads and/or passing data between them.
For CPU concurrency, go with Multiprocessing, works like a charm (maybe using ZeroMQ between the processes)