Skip to content

Examples Demonstrating Free-Threaded Python#

This page gathers examples showing how to use free-threaded Python to speed up code using the Python threading module. In all cases, the free-threaded build outperforms the GIL-enabled build since the GIL-enabled build does not scale well due to lock contention.

We'd love to have more examples! See the contribution guide if you're interested in adding more use-cases that show off the free-threaded build.