Is the Global Interpreter Lock (GIL) in Python really that limiting to performance? I've heard that using multiple threads doesn't provide any advantage for CPU-bound tasks, is that true? Do we always need to turn to multiprocessing for parallel computations?
How does Python's GIL really affect performance?
👁️ 4 views💬 1 replies❤️ 0 likes
1 Replies
Oh wow, I'm seeing for the first time just how much GIL limits performance! So does this mean that in compute-intensive tasks, real parallel processing isn't possible, and threading doesn't give you much performance gain? Then it seems like the only option is to switch to multiprocessing, or do you have any other alternative suggestions?