diff options
| author | Eltrac <hi@guhub.cn> | 2025-04-09 17:36:08 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-04-09 17:36:08 +0800 |
| commit | 31abe777d89a462f402e3962bca2516ef0ef1ca9 (patch) | |
| tree | bd310da3682b5a9a15eaf106eb3f09672f33b61d /content | |
| parent | b5ce0726432faced6d595ac314f29221e056527a (diff) | |
docs: upload drafts
Former-commit-id: bb42066de77d346c138e5e27f23e857488aae2a9
Diffstat (limited to 'content')
| -rw-r--r-- | content/posts/weekly/稻草人周刊-vol-24.md | 39 | ||||
| -rw-r--r-- | content/原语.md | 16 |
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 |
