threading

Tag

Cards List
#threading

Understanding std::counting_semaphore and std::binary_semaphore from C++20

Lobsters Hottest · 7h ago Cached

This article explains C++20's std::counting_semaphore and std::binary_semaphore, covering their API, usage for limiting concurrency and signaling between threads, and important details.

0 favorites 0 likes
#threading

Zig's Io.Threaded is Neat

Lobsters Hottest · 2d ago Cached

Article discusses Zig's std.Io.Threaded, an implementation of Zig's Io interface that uses blocking syscalls and supports cancellation via signals, contrasting concurrency and parallelism.

0 favorites 0 likes
#threading

Making an agile version of a Windows Runtime delegate in C++/WinRT, part 5

The Old New Thing (Raymond Chen) · 2026-07-24 Cached

This article continues a series on implementing agile delegates in C++/WinRT, addressing the issue of destructing non-agile delegates in the correct context using a custom deleter and IContextCallback.

0 favorites 0 likes
#threading

The Tokio/Rayon Trap and Why Async/Await Fails Concurrency

Hacker News Top · 2026-07-16 Cached

The article examines how async/await syntax, while easy to write, creates significant complexity in production by conflating asynchrony with concurrency, often requiring manual partitioning of I/O and compute tasks across separate runtimes like Tokio and Rayon, leading to latency spikes and system instability.

0 favorites 0 likes
#threading

Free-threaded Python: past, present, and future

Lobsters Hottest · 2026-06-25 Cached

Thomas Wouters gives a talk at PyCon US 2026 on the past, present, and future of free-threaded Python, which removes the global interpreter lock (GIL) to allow parallel thread execution.

0 favorites 0 likes
#threading

PSA: Test your "threads" argument in llama.cpp (+80% performance in my case)

Reddit r/LocalLLaMA · 2026-06-12

A user benchmarks thread count for hybrid CPU-GPU inference with Gemma 4 in llama.cpp, discovering a 80% performance uplift by using 16 threads instead of 6 on a hybrid core CPU, and shares the optimal command configuration.

0 favorites 0 likes
#threading

Why do you say that a COM STA thread must pump messages if I see sample code creating STA threads and not pumping messages?

The Old New Thing (Raymond Chen) · 2026-05-22 Cached

Raymond Chen explains that COM STA threads are required to pump messages only when idle; code that is always busy doesn't need an explicit message loop, but COM still creates a hidden window that requires pumping when the thread becomes idle to avoid jamming window broadcasts.

0 favorites 0 likes
← Back to home

Submit Feedback