• @anton@lemmy.blahaj.zone
    link
    fedilink
    023 days ago

    Now do computation in those threads and realize that they all wait on the GIL giving you single core performance on computation and multi threaded performance on io.

    • @AndrasKrigare@beehaw.org
      link
      fedilink
      023 days ago

      Correct, which is why before I had said

      I think OP is making a joke about python’s GIL, which makes it so even if you are explicitly multi threading, only one thread is ever running at a time, which can defeat the point in some circumstances.