OS -- three easy pieces -- Introduction

本文介绍了操作系统的基本概念,包括虚拟化如何将单一CPU转化为多个虚拟CPU,实现多程序同时运行;并发处理带来的挑战,如内存访问同步问题;以及持久化存储的重要性,操作系统如何通过文件系统管理数据,确保数据在系统故障后的恢复。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Virtualization:

Assume there is one physical CPU in a system (though now there are often two or four or more). What virtualization does is take that single (physical) CPU and make it look like many virtual CPUs to the applications running on the system.

Concurrency:
In multi-threaded applications, where each thread is independently doing things on the program's behalf, suppose that these threads access memory. If we don't coordinate access to memory between threads, the program won't work as expected.
First, the OS must support multi-threaded applications with primitives such as locks and condition variables.
Second, the OS itself was the first concurrent program — it must access its own memory very carefully.

Persistence:

making information persist, despite computer crashes, disk failures, or power outages.

 

Introduction to Operating Systems

the basics of the Von Neumann model of computing:
a running program: instructions (fetch -> decode -> execute)

1 The role of OS

the primary goal of making the system easy to use -- the operating system (OS)

what an OS actually does:
It takes physical resources, such as a CPU, memory, or disk, and virtualizes them.
It handles tough and tricky issues related to concurrency.
It stores files persistently, thus making them safe over the long-term.

1.1 Virtualization

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值