Overview
Explore the groundbreaking PyPy-STM implementation that eliminates the Global Interpreter Lock (GIL) in this EuroPython 2015 conference talk. Dive into Software Transactional Memory (STM) and its potential to revolutionize multithreading in Python. Learn how to leverage STM reports to identify and resolve conflicts in large codebases, enabling efficient utilization of multiple cores for non-multithreaded programs. Discover concrete examples and practical applications of PyPy-STM, including PITie and subprocessing. Compare STM with the traditional GIL approach and understand the novel programming model it introduces. Gain insights into running multiple threads, handling input/output operations, and optimizing performance in PyPy-STM environments.
Syllabus
Intro
What is PyPySTM
What is STM
What is PITie
PITie example
Subprocessing
Example
Multithreaded program
Multithreaded example
Conclusion
Running two threads
Input output
STM vs GIL
Model to program
Questions
Taught by
EuroPython Conference