arthrop0d

Brief articles on varied topics.

concurrency

31 articles tagged concurrency.

  1. Go’s G-M-P Scheduler Model

    How Go maps goroutines onto threads and processors, balances run queues, and keeps other goroutines running during blocking system calls.

    golangconcurrency

  2. Windows I/O Completion Ports Explained

    How Windows queues completed asynchronous I/O and lets a bounded worker pool process it without one thread per request.

    microsoftoperating systemsconcurrency

  3. Linux Futexes and the Contended Lock Path

    How Linux futexes keep uncontended locks in user space and use kernel wait queues and targeted wakeups when threads must sleep.

    linuxconcurrencyoperating systems

  4. Memory Barriers and Safe Producer-Consumer Handoffs

    How CPUs and compilers reorder memory operations, and how release-acquire barriers make shared-data handoffs safe.

    operating systemsconcurrency

  5. MVCC Snapshots and Tuple Visibility

    Learn how transaction IDs and MVCC snapshots decide which row version a query can see while concurrent writes continue.

    databasesconcurrency

  6. How Python asyncio Schedules Coroutines

    A practical explanation of how asyncio runs coroutines, waits for I/O readiness, and resumes tasks without one thread per operation.

    pythonconcurrencysoftware engineering

  7. How Go’s G-M-P Scheduler Runs Goroutines

    How Go maps goroutines onto threads and processors using local queues, work stealing, preemption, and syscall handoff.

    golangconcurrency

  8. AWS Lambda Execution Environment Lifecycle

    How Lambda initializes, reuses, freezes, and replaces execution environments—and why globals and other in-memory state are only opportunistic.

    amazon web servicesconcurrency

  9. CPU Memory Barriers and Memory Ordering

    How release and acquire ordering safely publish data between threads when cores and compilers do not observe operations in program order.

    concurrencycomputer science

  10. Linux Futexes and User-Space Synchronization

    How Linux futexes keep uncontended locks in user space and use kernel sleep queues to block and wake threads under contention.

    linuxoperating systemsconcurrency

  11. Python Asyncio Task Cancellation

    How asyncio delivers CancelledError at await points, propagates it through coroutines, and still runs cleanup during cancellation.

    pythonconcurrency

  12. How Work-Stealing Deques Reduce Scheduler Contention

    A work-stealing deque gives each worker fast local task operations while letting idle workers take tasks from the opposite end.

    concurrencyalgorithms

  13. Go’s G-M-P Scheduler Explained

    How Go’s scheduler maps goroutines onto OS threads, uses processors, and steals work when blocking would otherwise stop progress.

    golangconcurrency

  14. RCU Read-Side Critical Sections and Grace Periods

    How RCU lets readers access shared data without locks while writers publish replacements and reclaim old versions safely.

    concurrencyoperating systems

  15. Windows I/O Completion Ports

    How Windows queues overlapped I/O completions to a bounded worker pool for scalable servers and services.

    microsoftconcurrency

  16. MVCC Snapshots and Row Version Visibility

    How MVCC snapshots choose visible row versions so SQL readers and writers can run concurrently without blocking each other.

    sqldatabasesconcurrency

  17. Linux Futexes: User-Space Fast Paths and Kernel Wait Queues

    Futexes let synchronization stay in user space when uncontended and use kernel wait queues only when threads must sleep.

    concurrencyoperating systems

  18. Acquire and Release Memory Ordering

    How release operations publish prior writes to acquire operations without forcing every atomic access into one global order.

    concurrencycomputer science

  19. CPython’s Global Interpreter Lock

    How CPython’s GIL protects interpreter state, makes threads contend, and affects CPU-bound and I/O-bound programs differently.

    pythonconcurrency

  20. Python Asyncio Task Cancellation

    Understand how asyncio injects CancelledError, propagates cancellation through awaited tasks, and lets coroutines clean up safely.

    pythonconcurrencysoftware engineering

  21. The Go Scheduler’s G-M-P Model

    How goroutines, OS threads, processors, parking, wake-ups, and work stealing cooperate to keep Go code running efficiently.

    golangconcurrency

  22. Linux epoll: Interest Lists, Ready Lists, and Triggers

    How epoll tracks watched descriptors, reports readiness, and lets one thread handle many connections with level- or edge-triggered events.

    operating systemsnetworkingconcurrency

  23. Rust Pin and Unpin for Self-Referential Futures

    How Rust’s Pin and Unpin types keep asynchronous state machines at stable addresses when futures contain references to their own data.

    rustconcurrency

  24. Memory Barriers and Concurrent Memory Ordering

    Memory barriers constrain compiler and CPU reordering so one thread can observe another’s updates in order, without making a whole operation atomic.

    concurrencycomputer science

  25. MVCC Snapshots and SQL Row Visibility

    How SQL transactions choose visible row versions so readers can use a consistent view while writers update the same data.

    sqldatabasesconcurrency

  26. TLB Shootdowns and Deferred Invalidation

    How CPUs keep page-table changes safe, why TLB shootdowns interrupt other cores, and how batching reduces their performance cost.

    operating systemsconcurrencyperformance

  27. Linux Futexes and User-Space Mutex Waiting

    A futex lets a mutex use atomic user-space operations normally and enter the kernel only when a contending thread must sleep or be woken.

    linuxconcurrencyoperating systems

  28. Go’s G-M-P Scheduler

    How Go’s goroutines, OS threads, processors, run queues, and work stealing determine concurrency, latency, and throughput.

    golangconcurrencyperformance

  29. Inside Python’s asyncio Event Loop

    How await suspends a Task, how I/O and timers wake it, and how the event loop chooses callbacks from its ready queue.

    pythonconcurrency

  30. Windows I/O Completion Ports and Worker Scheduling

    How Windows turns completed overlapped I/O into queued packets and limits runnable workers instead of assigning a thread to every operation.

    microsoftconcurrency

  31. CPython’s Global Interpreter Lock

    How CPython’s GIL protects interpreter state, coordinates thread execution, and lets native extensions run parallel or blocking work safely.

    pythonperformanceconcurrency

← All tags