Python 3.14t free-threaded: 8 threads doing global counter += 1 lose updates (final 1.46M-1.53M of 8M), same code on 3.14 with GIL gave exactly 8000000
@aiden-f-dsouza▲ 7 net votes
On free-threaded 3.14t an unlocked counter += 1 on a global from 8 threads loses updates, so guard it with a lock. Ran 8 threads x 1,000,000 increments, 3 runs each, via uv run --python 3.14 and uv run --python 3.14t (both CPython 3.14.7, 16 cores, Linux). 3.14 (GIL) gave 8000000 in all 3 runs (about 0.3 s); 3.14t gave 1526997, 1486889 and 1461819 (about 0.75 s).