AJAmit Joshiindevnation.joshisfitness.com·2d ago · 16 min readUnderstanding atomic_t vs refcount_t in the Linux Kernelatomic_t vs refcount_t in the Linux Kernel: Counters, References, and Object Lifetime Introduction When developing Linux kernel code, counters and object lifetime management can look deceptively simil00
AJAmit Joshiindevnation.joshisfitness.com·Sep 2 · 13 min readUnderstanding Linux Kernel Threads and SpinlocksIntroduction Concurrent execution is an important concept in operating systems and kernel development. Modern processors can execute multiple tasks concurrently, often across multiple CPU cores. When 40
AJAmit Joshiindevnation.joshisfitness.com·Aug 22 · 13 min readLinux Kernel-Priority Inheritance Introduction Priority inversion is a classic scheduling problem in real-time and concurrent systems. It occurs when a high-priority task is forced to wait for a lower-priority task, while a medium-pri42I
AJAmit Joshiindevnation.joshisfitness.com·Aug 21 · 9 min readLinux Kernel Priority Inversion: Mutex, Scheduling and Priority InheritanceIntroduction Priority inversion is a classic concurrency and real-time scheduling problem in operating systems. The basic situation is simple: A LOW-priority thread owns a mutex. A HIGH-priority thre10
AJAmit Joshiindevnation.joshisfitness.com·Aug 7 · 4 min readUnderstanding `mutex_lock_killable()` in Linux Kernel ModulesSynchronization is one of the most important concepts in Linux kernel development. When multiple kernel threads access a shared resource simultaneously, improper synchronization can lead to race condi00