hackclub/putting-the-you-in-cpu

MDXcpu.land
Linux

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

cpuelflinuxlinux-kernel
스타 성장
스타
5.6k
포크
193
주간 성장
+2
이슈
24
2k4k
2023년 6월2024년 7월2025년 8월2026년 9월
README

Putting the "You" in CPU

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

by @kognise and @hackclub


From the beginning...

I've done a lot of things with computers, but I've always had a gap in my knowledge: what exactly happens when you run a program on your computer? I thought about this gap — I had most of the requisite low-level knowledge, but I was struggling to piece everything together. Are programs really executing directly on the CPU, or is something else going on? I've used syscalls, but how do they work? What are they, really? How do multiple programs run at the same time?

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.

I cracked and started figuring as much out as possible. There aren't many comprehensive systems resources if you aren't going to college, so I had to sift through tons of different sources of varying quality and sometimes conflicting information. A couple weeks of research and almost 40 pages of notes later, I think I have a much better idea of how computers work from startup to program execution. I would've killed for one solid article explaining what I learned, so I'm writing the article that I wished I had.

And you know what they say... you only truly understand something if you can explain it to someone else.

In a hurry? Feel like you know this stuff already?

Read chapter 3 and I guarantee you will learn something new. Unless you're like, Linus Torvalds himself.


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

관련 저장소
exelban/stats

macOS system monitor in your menu bar

SwiftappMIT Licensemacosmonitor
mac-stats.com
41.7k1.5k
0voice/interview_internal_reference

2025年最新总结,阿里,腾讯,百度,美团,头条等技术面试题目,以及答案,专家出题人分析汇总。

PythonPyPIinterviewnetworkredis
37.2k9.3k
Rem0o/FanControl.Releases

This is the release repository for Fan Control, a highly customizable fan controlling software for Windows.

appOtherfancontrol
20.8k619
seerge/g-helper

Lightweight Armoury Crate alternative for Asus laptops with nearly the same functionality. Works with ROG Zephyrus, Flow, TUF, Strix, Scar, ProArt, Vivobook, Zenbook, Expertbook, ROG Ally, and more.

C#appGNU General Public License v3.0g14mux
g-helper.com
15.1k575
plasma-umass/scalene

Scalene: a high-performance, high-precision CPU, GPU, and memory profiler for Python with AI-powered optimization proposals

PythonPyPIcliApache License 2.0pythonprofiling
13.5k437
giampaolo/psutil

Cross-platform lib for process and system monitoring in Python

PythonPyPIBSD 3-Clause "New" or "Revised" Licensepythonmonitoring
psutil.io
11.3k1.5k
unicorn-engine/unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)

ClibraryGNU General Public License v2.0emulatorframework
unicorn-engine.org
9.3k1.5k
AdnanHodzic/auto-cpufreq

Automatic CPU speed & power optimizer for Linux

PythonPyPIcliGNU General Public License v3.0cpuspeed
foolcontrol.org
7.8k357
tianshiyeben/wgcloud

Linux运维监控工具,支持系统硬件信息,内存,CPU,温度,磁盘空间及IO,硬盘smart,GPU,防火墙,网络流量速率等监控,服务接口监测,大屏展示,拓扑图,端口监控,进程监控,docker监控,日志监控,文件防篡改,数据库监控,指令批量下发执行,web ssh,Linux面板(探针),告警,SNMP监测,K8S,Redis,Nginx,Kafka,资产管理,计划任务,密码管理,工作笔记

JavaMavenApache License 2.0linuxdevops
wgstart.com
5.2k908
GoogleChromeLabs/react-adaptive-hooks

Deliver experiences best suited to a user's device and network constraints

JavaScriptnpmApache License 2.0react-hooksperformance
5.2k112
amanusk/s-tui

Terminal-based CPU stress and monitoring utility

PythonPyPIcliGNU General Public License v2.0cpumonitoring
amanusk.github.io/s-tui/
5.1k180
uber-go/automaxprocs

Automatically set GOMAXPROCS to match Linux container CPU quota.

GoGo ModuleslibraryMIT Licensegogolang
godoc.org/go.uber.org/automaxprocs
4.9k176