Ubuntu – Multithreaded Python Program faster than Single Threaded program for CPU bound task
EDIT : Turns out this weird behavior was happening only with python in my WSL ubuntu. Otherwise, sequential does run faster than multi-threaded one. I understand that, for CPython, in general, multiple-threads just context-switch while utilizing the same CPU-core and…