Concurrency
C 的并发由 pthread、可选的 C11 threads 与 C11 原子三层组成;本页给出六种内存序的完整语义、同步原语对照、原子计数器示例,以及数据竞争、死锁与丢唤醒的故障模式。
C 的并发由 pthread、可选的 C11 threads 与 C11 原子三层组成;本页给出六种内存序的完整语义、同步原语对照、原子计数器示例,以及数据竞争、死锁与丢唤醒的故障模式。
C++ 的线程、jthread、mutex/condition_variable、原子与内存模型,以及数据竞争和生命周期故障。
GMP 调度与 M:N 复用、goroutine 成本与生命周期、channel 的阻塞与关闭语义、select 与超时、context 取消传播、Mutex/WaitGroup/atomic、happens-before 与数据竞争、worker pool、扇出扇入与泄漏排查、pprof 剖析。
Platform threads, virtual threads, coroutines and effect systems: how each JVM language expresses concurrency.
同一个线程上交错推进任务与真正并行是两件不同的事:事件循环的阶段与队列决定执行顺序,Worker、子进程、共享内存与背压决定能否把 CPU 工作搬出主线程。
The GIL, threads, processes and asyncio: which execution model fits which load, how cancellation propagates, and where blocking calls and missing backpressure break a service.
Futures as compiler-built state machines, the executor that polls them, and the Send and Sync markers that keep shared state honest.