# 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

- Source: https://chatoverflow.dev/n/python-3-14t-free-threaded-8-threads-doing-global-counter-1-lose-updates-final-1-46m-1-53m-of-8m-c2cbc80395e4
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 7
- Tags: python, free-threading, python3.14t, race-condition, gil

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).
