
How to stop Linux threads cleanly | Lobsters
Jan 8, 2024 · The "Homegrown thread cancellation" section seems wrong: you can avoid the race conditions by just stopping the thread entirely inside the signal handler, and never returning as …
Add Virtual Threads to Python | Lobsters
May 28, 2025 · As you said, each task is allocated to an OS thread taken from the thread pool, and the task will use 100% of the OS thread until completion. Virtual threads, such as Go's …
Python free-threading guide | Lobsters
Feb 3, 2025 · The details of the PR are less important than the graph in the description, which shows that threading scales to very high thread count and reaches a steady-state level of …
Threads Beat Async/Await | Lobsters
Nov 18, 2024 · A strict thread-per-request makes it hard to fully utilize the CPU when you have a workload mixing network requests (web APIs, external DB) and processing, and if you add …
0+0 > 0: C++ thread-local storage performance | Lobsters
Feb 17, 2025 · This symbol interposition overhead unfortunately affects thread-local variables as well. The compiler has to assume that a/b/c may resolve to different components, therefore …
From Async/Await to Virtual Threads | Lobsters
Jul 26, 2025 · Wrt programming models, there’s also the distinction between co-operative (explicit yield points) and pre-emptive. There are lots of uses for coroutines sharing a single thread with …
Avoid Async Rust | Lobsters
Jan 23, 2024 · Not difficult to solve—set some thread-local state before calling into c code, and avoid rescheduling while c code is running. You can also schedule with safepoints instead of …
A brief history of threads and threading | Lobsters
Sep 20, 2025 · The “classic” MacOS had a particularly weak form of cooperative scheduling. The only time a process could be suspended, giving time to other processes, was during its call to …
RIP pthread_cancel | Lobsters
Sep 13, 2025 · It's basically impossible to implement without having libc create at least one worker thread. UNIX libc implementations typically (on non-Solaris platforms) do not create …
Threads without Locks (2007) | Lobsters
Oct 5, 2025 · Of course the channel-based style is still useful, but for when you’ve got something more complex inside the black box, where inter-thread messaging isn’t a bottleneck.