Skip to content

A technical explainer by @kognise of how your computer runs programs, from start to finish.

License

Notifications You must be signed in to change notification settings

w93163red/putting-the-you-in-cpu

 
 

Repository files navigation

Putting the "You" in CPU

A technical explainer of how your computer runs programs, from start to finish.

by @kognise and @hackclub


已将正文进行中文翻译

引子

我在计算机领域做过许多事情,但我的知识中一直存在一个空白:当你在电脑上运行一个程序时,究竟发生了什么?我思考这个问题时发现 - 我掌握了大部分必要的底层知识,但难以将所有碎片拼凑起来。程序真的是直接在CPU上执行的吗,还是另有玄机?我使用过系统调用,但它们究竟是如何工作的?它们本质上是什么?多个程序是如何同时运行的?

A scrawled digital drawing. Someone with long hair is confused as they peer down at a computer ingesting binary. Suddenly, they have an idea! They start researching on a desktop computer with bad posture.

我终于忍不住开始尽可能地弄清楚这些问题。如果你不上大学,就很难找到全面的系统资源,所以我不得不翻阅大量质量参差不齐、有时甚至相互矛盾的资料。经过几周的研究和近40页笔记后,我认为我对计算机从启动到程序执行的工作原理有了更深入的理解。如果当时有一篇扼要解释我所学内容的文章就好了,所以我决定写下这篇我曾渴望拥有的文章。

你知道人们常说的那句话吗..."只有当你能向别人解释清楚时,你才是真正理解了某样东西。"

赶时间?觉得自己已经了解这些内容了?

阅读第三章,我保证你会学到新东西。除非你是 Linus Torvalds 本人。


Continue to Chapter 1: The "Basics" »
(cpu.land)

About

A technical explainer by @kognise of how your computer runs programs, from start to finish.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MDX 71.5%
  • Astro 17.4%
  • CSS 9.5%
  • JavaScript 1.2%
  • TypeScript 0.4%