TAG
CPython
3 articles
- Concurrency Programming (1.5): The Operating System Layer — Threads, Schedulers, and Runtime Scheduling
Following Java platform and virtual threads, Go G-M-P, and CPython threads from their runtime representations to OS threads and ultimately CPU execution.
- Concurrency Programming (4): How Mutexes Are Implemented — From Runtime to CPU
Traces the actual implementation paths of Java synchronized, Go sync.Mutex, and CPython threading.Lock to show how mutexes rely on atomic operations, memory ordering, and waiting and wake-up mechanisms.
- Concurrency Programming (6): How Atomic Operations Are Implemented — From Runtime to CPU
Traces the implementation paths of Java AtomicInteger, Go sync/atomic, and CPython's internal atomic operations to show how atomic RMW, CAS, and memory ordering reach the CPU.