|
|
Log in / Subscribe / Register

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


to post comments

2 threads or 100 threads?

Posted Aug 24, 2024 6:37 UTC (Sat) by wujj123456 (subscriber, #84680) [Link]

Got it. Somehow I missed the link to video. I agree with you given Anthony was just stating that the threads couldn't run in parallel. Thanks for the continued coverage on this interesting topic.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds