2 threads or 100 threads?
2 threads or 100 threads?
Posted Aug 22, 2024 16:11 UTC (Thu) by jake (editor, #205)In reply to: 2 threads or 100 threads? by wujj123456
Parent article: Python subinterpreters and free-threading
I think Anthony was just making a general statement about what *would* happen if he were to do that. I checked the video and the quote is correct, though I think he misstates what he means ... the part that he showed in his slides is just the upper "Crude sample" part from that link. Now that you point it out, though, I suspect he did not actually mean that it took twice as long, just that it would take the same amount of time as the simple non-threaded version because the GIL would not be released so (any number of) threads would serialize.
jake
