{"product_id":"exceptional-kernel-engineering-scheduling-m-shor-9798269657103","title":"Exceptional Kernel Engineering - Scheduling and Concurrency: Threads, SMP, and Synchronization","description":"\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\u003cbr\u003e\u003cbr\u003e\u003cb\u003eAuthor:\u003c\/b\u003e M. Shor\u003cbr\u003e\u003cb\u003eISBN-13:\u003c\/b\u003e 9798269657103\u003cbr\u003e\u003cb\u003ePublisher:\u003c\/b\u003e Independently Published\u003cbr\u003e\u003cb\u003eLanguage:\u003c\/b\u003e English\u003cbr\u003e\u003cb\u003ePublished:\u003c\/b\u003e 10\/13\/2025\u003cbr\u003e\u003cb\u003ePages:\u003c\/b\u003e 424\u003cbr\u003e\u003cb\u003eFormat:\u003c\/b\u003e Paperback\u003cbr\u003e\u003cb\u003eWeight:\u003c\/b\u003e 1.24lbs\u003cbr\u003e\u003cb\u003eSize:\u003c\/b\u003e 9.00h x 6.00w x 0.86d","brand":"M. Shor","offers":[{"title":"Paperback","offer_id":48447096127743,"sku":"9798269657103","price":39.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0662\/2982\/9887\/files\/img_c999c0d8-e511-4584-9c51-6cf31a8ad4ca.jpg?v=1777228793","url":"https:\/\/www.whiterainbookhouse.com\/products\/exceptional-kernel-engineering-scheduling-m-shor-9798269657103","provider":"WR Book House","version":"1.0","type":"link"}