惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
U
Unit 42
Y
Y Combinator Blog
I
InfoQ
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
量子位
Microsoft Security Blog
Microsoft Security Blog
B
Blog
The Cloudflare Blog
F
Fortinet All Blogs
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
C
Check Point Blog
S
SegmentFault 最新的问题
爱范儿
爱范儿
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
T
Tailwind CSS Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
The Introduction
c0d3l0v3r · 2026-06-27 · via DEV Community

c0d3l0v3r

Cover Image

Operating system, a thing that everybody uses but no one talks about.

While reading Operating Systems: Three Easy Pieces (OSTEP), my background in C and C++ fueled a growing fascination with memory allocation, virtualization, scheduling, and the intricate mechanics of operating systems. This would be a series of article, the number i am not sure, it will be the amount of content that someone might comfortably read in a 10 min Article. 

Keeping each piece to a solid 10-minute read is the perfect sweet spot for a developer to read over a cup of coffee. It gives you enough runway to explain a core concept, show the math, and link a practical C/C++ experiment without making their eyes glaze over.

Why this Article ? We are often warned against “reinventing the wheel.” However, I firmly believe that building and optimizing modern software is impossible without a fundamental grasp of virtualization, memory allocation, and concurrency.

Consider Docker: it functions almost entirely on OS-level virtualization features like Namespaces, cgroups, and isolated filesystems. Similarly, the highly optimized Memory Manager in PostgreSQL only works because it leverages the robust memory management systems already written into the OS kernel.

This article aims to bring the core concepts of OSTEP to life through practical experimentation. By accompanying the theory with an open-source repository, my goal is to provide a clear, interactive learning experience that demystifies operating systems.

I am not an operating system guru or a Principal Engineer with years of experience, but I hope to become one someday (assuming AI doesn’t replace me first… HeHe). What I can do is dive in, explore, and try to understand these concepts by actually building things. Because of that, my goal here is to present the findings and experiments I explore rather than giving strong opinions — I’ll leave the comment section for those! Any support, feedback, or contributions from the community will be incredibly valuable to me.

Who is this Article For ?

  • Anyone curious about low-level system design and how things actually work under the hood.
  • Peers and developers looking for a practical, hands-on refresher on core operating system concepts.
  • People who hate dry theory and just want to build things practically (though fair warning: we are going to dive into some essential calculations and theory notes to make the practical stuff actually work, bro…).

The Fundamentals

The Operating system as written in OSTEP and i also agree, can be learned with the help of understanding 3 fundamental concepts that forms the backbone of any application today.

  • Virtualization :

    The ability of the operating system to give a process the illusion of infinite, private resources.

    Let’s break it down with an analogy. Consider yourself a wealthy investor, and I am your property manager. On paper, I sold you a massive 100-acre farm. In your mind, you own that entire 100 acres all to yourself.

    In reality, I only manage 50 physical acres, and I’m secretly juggling leases for several other investors on that exact same land. But here is the trick: you never inspect the entire 100 acres at the exact same time. Whenever you want to visit a specific acre, I scramble behind the scenes, clear out whatever else was there, and set up your stuff before you walk through the gate.

    To you, the illusion is perfect — you have a massive, private 100-acre estate. Meanwhile, I (the OS) am sweating under the hood, dynamically swapping things around to make a 50-acre reality work for everyone.

  • Persistence :

    The ability of the system to permanently retain data once it has been committed. Imagine how frustrating your life would be if you had to set up your mobile phone from scratch every single day because your contacts and settings wouldn’t save. Without persistence, everything a program does vanishes the moment the power cord is pulled. The OS handles the massive responsibility of mapping volatile, short-term memory to permanent, physical storage (like SSDs and hard drives) so your data survives.

  • Concurrency :

    The ability of the system to handle multiple tasks or run processes in parallel. While virtualization creates a tidy, isolated world for a single process, modern applications rely on multi-threading, which introduces total chaos. The OS has to manage this concurrency with strict rules to prevent disasters :

    - Mutual Exclusion: Ensuring that when one process or thread is modifying shared data (like a bank balance), no other thread can touch it at the same time.

    - Determinism & Isolation: Ensuring that regardless of the chaotic order in which the OS schedules different threads, the final result of the program remains correct, predictable, and exact every single time.

Wrapping Up

Hopefully, this introduction gives you a clear picture of what this series is all about. This first piece was all about laying the foundation and mapping out the technical road ahead. Because each of these core pillars contains a massive amount of depth, math, and practical nuance, I will be separating them into their own distinct, dedicated articles moving forward.

Next up, we are diving straight into Part 1: The Art of Time Sharing, where we will peel back the layers on CPU virtualization, understand how the OS pulls off seamless context switching, and dive into the math behind different scheduling policies.

Thanks for reading, and I’ll see you in the next one… bro!