4 ms·
what about GIL? https://wiki.python.org/moin/GlobalInterpreterLock https://wiki.python.org/moin/GlobalInterpreterLock why python can't thread? impact of GIL on
by noloblo 4y ago
what about GIL? https://wiki.python.org/moin/GlobalInterpreterLock https://wiki.python.org/moin/GlobalInterpreterLock
why python can't thread? impact of GIL on python https://pythonspeed.com/articles/python-gil/ https://pythonspeed.com/articles/python-gil/
- synergy20 4y agoMy understanding is that even with GIL removed today, Python is still not a performant language for cpu-intensive tasks, be it single core or multiple-core. Python is better used as a glue language and leverage numpy etc to do the heavy lifting, numpy can work with multiple-core just like c/c++/rust languages can. If you really need launch multiple python processes, the multiprocessing module comes to rescue. While not ideal, I don't see a showstopper to use Python for HPC's high and parallel computation needs at all.