Python, Prompt Engineering, Data Science — Build the Skills Employers Want Now
Get 20% off all career paths from fullstack to AI
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore parallel programming capabilities in Cython through this comprehensive conference talk from EuroPython 2025. Learn how to leverage Cython's tools for generating high-performance C/C++ code from Python-like syntax while implementing effective parallelization strategies. Discover four key approaches to parallel programming in Cython: the built-in "prange" mechanism for handling loops with independent iterations, utilizing Python's threading module with performant Cython code, accessing C++ standard library threading tools with proper synchronization techniques, and implementing subinterpreters for isolated parallel processes. Examine recent improvements targeting freethreaded Python, including the new `cython.critical_section` feature that provides convenient syntax around Python's internal critical sections. Compare the differences and similarities between Python's Global Interpreter Lock (GIL) and the localized interpreter locks in freethreaded builds. Understand Cython's approach to thread-safety in freethreaded environments through practical examples from Cython internals, and gain insights into writing performant, thread-safe code that works effectively in both traditional and freethreaded Python environments.
Syllabus
Parallel programming and Cython — David Woods
Taught by
EuroPython Conference