Posts
All the articles I have published.
46 posts
Page 2/6
-
sudo go: command not found 問題解決
記錄 sudo 環境下出現 'go: command not found' 的原因,以及透過修改 /etc/sudoers 的 secure_path 解決問題的方法。
-
從執行順序來探討 Race condition, go 語言的 happens-before 規則
從程式執行順序切入,說明 Race condition 的成因,並介紹 sequenced-before、happens-before、synchronized-with 等多執行緒同步的核心概念。
-
Concurrency vs Parallelism 淺談兩者區別以及名詞介紹
用暗殺教室與火影忍者的影分身之術,直觀解釋 Concurrency 與 Parallelism 的核心差異,並介紹 context switch、scheduler、preemptive 等重要名詞。
-
leetcode 1022. Sum of Root To Leaf Binary Numbers [Easy]
DFS 遍歷所有根到葉的路徑,以位元左移方式累積二進位值並求和,解析 Sum of Root To Leaf Binary Numbers。
-
Linux schedule 原始碼解讀
追蹤 Linux kernel v4.14 排程器 schedule() 的原始碼,梳理從 preempt_disable 到 __schedule 的完整 context switch 執行流程。
-
Linux fork() 底層實作流程整理
從 fork() system call 出發,追蹤 Linux kernel v4.14 中 _do_fork() 的實作流程,理解 process 建立時 task_struct 的初始化細節。