你点击一个键。 屏幕有反应。 你动一下鼠标。 随后出现一个图标。 感觉是瞬间的。 感觉就像魔法一样。 但没有什么魔法。 只有代码。
该代码有一个名称。 它是操作系统。
将操作系统视为混乱办公室的经理。 硬件——屏幕、键盘、处理器、内存——只是一堆桌子、椅子和原材料。 没有经理,没有人知道该怎么办。 操作系统引导流程。 它控制输入。 它管理输出。 它会跟踪您创建或删除的每个文件。 它会分配资源,以便您的音乐播放器不会使您的网络浏览器崩溃。
它是你和机器之间的接口。 您不直接与处理器对话。 您与操作系统交谈,然后操作系统告诉处理器要做什么。
Multitasking techniques
Computers don’t think about one thing at a time. It pretends to.
Open 10 tabs, play a Spotify track, edit a document, and the operating system takes care of everything at the same time. It uses a technique called time-sharing. This allocates a small portion of CPU time to each program. Then it switches. Then it changes again. The slices are so small that they appear to be simultaneous actions. This is an illusion. It is very good.
On older systems, if one program freezes, everything freezes. The operating system cannot isolate the problem. Modern systems are more robust. A fixed amount of memory and CPU time is allocated. If one job reads data from disk, another job can write data to the printer. Another can perform calculations. The OS makes sure they don’t step on each other’s toes.
Who controls the machine?
Not all operating systems are created equal.
UNIX is a common choice for mainframe computers that process large amounts of data for banks and government agencies. It is machine-independent. It works reliably on multiple hardware platforms. Reliable. Changing physical servers is possible as long as the user interface of the software is consistent.
For personal computers, the landscape is different. It is derived from MS-DOS, a command-line interface that requires users to type commands to navigate. It made computers accessible. You click. You drag. You drop.
But there are other options. Linux. It is open source. It includes applications from supercomputers to Android smartphones. It’s free. It is customizable. These are very attractive to those who are meant to be controlled.
Why it’s important
We take operating systems for granted. They are invisible. Until they fail.
When the computer is updated, the operating system tools are rearranged. When you connect a USB drive, the operating system recognizes it, installs the necessary drivers and makes the files usable. When you close it, the job is saved, the process stops and the power is turned off.
It is the foundation. Without it, the hardware would just be expensive metal or plastic. It is the layer that makes technology useful. Therefore, you can work, play and connect without having to understand the binary code that provides the basic functionality.
The next time you boot up your machine, remember the















