s
May 15, 2023, 7:42 p.m. |

Simon Willison's Weblog simonwillison.net

Real Multithreading is Coming to Python - Learn How You Can Use It Now


Martin Heinz provides a detailed tutorial on trying out the new Per-Interpreter GIL feature that's landing in Python 3.12, which allows Python code to run concurrently in multiple threads by spawning separate sub-interpreters, each with their own dedicated GIL.

It's not an easy feature to play with yet! First you need to compile Python yourself, and then use APIs that are generally only available to C …

code concurrency feature gil go heinz landing learn multiple multithreading per python python 3 threads tutorial

Data Scientist (m/f/x/d)

@ Symanto Research GmbH & Co. KG | Spain, Germany

Data Science Sustainability Co-Op (Summer & Fall 2024)

@ O-I | Perrysburg, OH, United States

Research Scientist

@ Chevron Phillips Chemical Company | USA: Kingwood, TX, US, 77339

Data Scientist Python (Django) (m/f/d)

@ RoomPriceGenie | Hybrid Mannheim, Remote DACH, Remote Germany

Operational Transformation & Strategy - Data Operations - Associate

@ JPMorgan Chase & Co. | Mumbai, Maharashtra, India

Senior Data Scientist

@ Rocket Travel | Chicago, IL USA