Chapter 3: Mutexes / Mutex LockIn the Linux kernel, a mutex (short for mutual exclusion) is a synchronization primitive used to protect shared resources from concurrent access by multiple tasks (threads or processes). Ok lets understand Mutex in following manner ............ Lock...Aug 17, 2024 · 5 min readsuyogb.hashnode.dev
Linux Device Driver C Programming Interview QuestionsHi everyone, Recently, I took an online assessment for a Linux device drivers position at AMD. The assessment required completing a C programming task within 16 minutes. I felt the pressure to finish within that timeframe. Now, come to the point: The...Aug 10, 2024 · 4 min readsuyogb.hashnode.dev
Chapter 2: The kernel locks (Limitations of Spinlocks)Until now, we have understood how spinlocks work and have seen a practical demo on the Raspberry Pi development board. Next, we will discuss the limitations of spinlocks. Although spinlocks prevent preemption on the CPU, they do not prevent the CPU f...Aug 3, 2024 · 5 min readsuyogb.hashnode.dev
Chapter 1 : The kernel locks (Spinlock)Before delving into the topic, let's start with some basics. A resource is considered shared when it is accessed by several contenders. These contenders, such as processors, processes, or threads, may own the resource either exclusively or concurrent...Jul 21, 2024 · 7 min readsuyogb.hashnode.dev