summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-04-09 17:36:08 +0800
committerEltrac <hi@guhub.cn>2025-04-09 17:36:08 +0800
commitbb42066de77d346c138e5e27f23e857488aae2a9 (patch)
tree81d552e16615f06268baab06c240678d763cb5eb /content
parent93fc9c131d6e4bbc346210f1c7c1be83528862ea (diff)
docs: upload drafts
Diffstat (limited to 'content')
-rw-r--r--content/posts/weekly/稻草人周刊-vol-24.md39
-rw-r--r--content/原语.md16
2 files changed, 55 insertions, 0 deletions
diff --git a/content/posts/weekly/稻草人周刊-vol-24.md b/content/posts/weekly/稻草人周刊-vol-24.md
new file mode 100644
index 00000000..1d43225e
--- /dev/null
+++ b/content/posts/weekly/稻草人周刊-vol-24.md
@@ -0,0 +1,39 @@
+---
+title: 稻草人周刊 Vol.24
+subtitle:
+description:
+tags:
+related_cards:
+date: 2025-04-09 17:22:45
+categories: 稻草人周刊
+banner: https://image.guhub.cn/uPic/casey-horner-_wGbMD-Lf0w-unsplash-2-2.jpg
+draft: true
+toc: true
+---
+
+random shit, maybe music and stuff
+
+## 🙋 在做什么
+
+
+
+## 📖 本周阅读
+
+{{< bookcard "虚掷的夏日" >}}
+
+## 💬 本期杂谈
+
+### a topic
+
+content here
+
+[#tag](/tags/tag)
+
+## 💡 新知复盘
+
+
+
+
+## 🗣️ 碎碎念
+
+-
diff --git a/content/原语.md b/content/原语.md
new file mode 100644
index 00000000..cd11d92f
--- /dev/null
+++ b/content/原语.md
@@ -0,0 +1,16 @@
+---
+title: 原语
+tags:
+ - 计算机
+date: 2025-04-09 17:25:18
+draft: true
+---
+原语(primitive)是计算机中**不可被中断**的一段机器指令,常见于**操作系统**中的进程调度。一个操作需要用原语实现,常常是因为这种操作一旦被中断,就会发生非常严重的错误,所以不允许中断。
+
+原语的「原」可以理解为「原子」(Atom),执行原语就是在执行一个原子操作(atomic action)。
+
+要实现原语,有两种方式:
+
+1. 禁用中断。
+
+<span style="font-size: 80%">Sources: 《操作系统 精髓与设计原理》[美] WILLIAM STALLINGS</span> \ No newline at end of file