Welcome to my blog
What is an operating system:
A program that manages computer hardware and provides an environment for applications
The core function
- Memory management:
All applications that need to use memory must request and register with the operating system. The memory management module of the operating system allocates memory to you to ensure that memory usage does not conflict.Copy the code
- Process scheduling:
The process scheduling module of the operating system is responsible for switching between processes.Copy the code
- Hardware device Management:
With the operating system, the operating system itself will control the hardware applications regardless of the details of the hardware. The hardware management module of the operating system is the driver module.Copy the code
- File management
A file system is a way to manage storage devices. A storage device consists of many sectors. Read and write operations are performed in sectors. If you don't have a file system, and your program has to read and write sectors by itself, you have to remember which files are in which sectors. With the file system, we don't have to pay attention to sectors, we only have to pay attention to the directory and file name in the file system, regardless of which sector the file is on the physical diskCopy the code