想了解 Linux 的同步 & 中斷機制,會穿插一些 Lab 實作,藉此更了解系統底層,以及如何開發平行化的程式
緣起 這是我第二次參加鐵人賽,去年訂了個題目「你所不知道的 C 語言」,就直接懶了,不寫了,因為覺得好困難~~ 但是今年真的要畢業了,準備要找工作,根據自己的面...
Spinlock 參考文章 Synchronization primitives in the Linux kernel. Part 1. Linux内...
如何撰寫 Inline Assembly 相信很多人都有寫過組合語言,但應該沒想過可以在 C 語言中也撰寫組合語言吧,總之這是辦得到的,那麼以下會針對這相關的語...
Type of Memory Barrier 參考 Wikipedia: 內存排序 Memory Barriers Are Like Source Co...
參考 Synchronization primitives in the Linux kernel. Part 1.(Linux 内核中的同步原语. 第一部...
參考 Linux Inside - Queued Spinlocks Linux内核的自旋锁 這邊要介紹的就是 arch_spin_lock L...
參考 Synchronization primitives in the Linux kernel. Part 3. Semaphore 先前介紹過 Spinl...
參考 Synchronization primitives in the Linux kernel. Part 4. Mutex(MUTual EXclusio...
Lock Performance 主要針對 Spinlock 與 Mutex 兩者去作比較 #include <stdio.h> #include...
讓我們從 Linked List 的資料結構下手,了解如何在 Multi-Thread 中維護一個 Linked List 經典範例 參考 The Art of...