▲ 279 ▼ When you run out of Claude tokens (thelemmy.club) submitted 8 hours ago by BeatTakeshi@lemmy.world to c/programmerhumor@lemmy.ml 24 comments fedilink hide all child comments Cross posted from: https://thelemmy.club/post/56974556
[–] Sonotsugipaa@lemmy.dbzer0.com 10 points 5 hours ago (1 child) TIL that thread safety is a thing in Python permalink fedilink source hideshow 1 child comment replies: [–] Trioxin@lemmygrad.ml 2 points 2 hours ago Well, yes... While the GIL restricts execution to only a single thread, CPython makes threads take turns on it without regard for your code - so a thread can give the lock up to another in the middle of a critical section. permalink fedilink source parent
[–] Trioxin@lemmygrad.ml 2 points 2 hours ago Well, yes... While the GIL restricts execution to only a single thread, CPython makes threads take turns on it without regard for your code - so a thread can give the lock up to another in the middle of a critical section. permalink fedilink source parent