TAG
CPython
2 articles
- Concurrency Programming (6): Atomic Implementation — From Runtime to CPU
Follows Java AtomicInteger, Go sync/atomic, and CPython's internal atomic operations to see how Atomic RMW reaches the compiler, runtime, and CPU.
- Concurrency Programming (4): Mutex Implementation — From Runtime to CPU
Follows the real implementation paths of Java synchronized, Go sync.Mutex, and CPython threading.Lock to see how mutexes use atomic operations, memory ordering, waiting, and wakeup.