• schmieroslav
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I don’t quite grasp the immediate consequences of this - does this mean that I can use threads instead of subpeocesses if I want to parallelize my program beyond one core?

    • maggio
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I also don’t know much about this subject, but I found this introduction quite helpful: What Is the Python Global Interpreter Lock (GIL)?

      Further down it does mention that currently you would use multiple processes (each one having its ownn GIL) to do this, but I guess this would allow you to use threads instead, if I understand it correctly