{"product_id":"exceptional-kernel-engineering-scheduling-and-concurrency-threads-smp-and-synchronization-9798269657103","title":"Exceptional Kernel Engineering - Scheduling and Concurrency: Threads, SMP, and Synchronization","description":"\u003cp\u003e • Author(s): M. Shor\u003cbr\u003e • Publisher: Independently Published\u003cbr\u003e • Publisher Imprint: Independently Published\u003cbr\u003e • BISAC: Operating Systems - General\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003eI wrote this for engineers who need to make many CPUs cooperate concurrently. I start from first principles of cache coherence and the C memory model, then build up atomics and fences that withstand both compiler and hardware reordering. I examine interrupts, preemption, and execution contexts that compete for the same data, then develop a toolbox of synchronization primitives including spinlocks, mutexes, reader-writer locks, RCU, and sequence counters. Each mechanism is presented with invariants, failure modes, progress guarantees, and guidance on when to use it.\u003c\/p\u003e\u003cp\u003eI then construct a practical scheduler and its ecosystem. You will see per-CPU runqueues, wakeups, timers, and load balancing for SMP and NUMA, along with affinity, migration, IPIs, TLB shootdowns, deferred work, and futex-based wait-wake paths. I address priority inversion, deadlocks, livelocks, and false sharing, and I include lock-free structures with safe reclamation. The goal is simple and measurable: predictable concurrency, low tail latency, and strong throughput in a kernel written in C.\u003c\/p\u003e","brand":"Atlantic Books","offers":[{"title":"Paperback","offer_id":46332044476567,"sku":"9798269657103","price":3401.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0666\/3471\/1191\/files\/9798269657103.webp?v=1768725042","url":"https:\/\/atlanticbooks.com\/products\/exceptional-kernel-engineering-scheduling-and-concurrency-threads-smp-and-synchronization-9798269657103","provider":"Atlantic Books","version":"1.0","type":"link"}