SBSuyog Buradkarinsuyogb.hashnode.dev·Aug 17, 2024 · 5 min readChapter 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...00
SBSuyog Buradkarinsuyogb.hashnode.dev·Aug 10, 2024 · 4 min readLinux 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...00
SBSuyog Buradkarinsuyogb.hashnode.dev·Aug 3, 2024 · 5 min readChapter 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...00
SBSuyog Buradkarinsuyogb.hashnode.dev·Jul 21, 2024 · 7 min readChapter 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...00