A: Computer Basics

One: What is programming

  For computer and communication language, java, there is c #, Python, each have their own rules and syntax, but also with their translator or compiler, so that high-level language programming the computer can understand 010101.

os responsible for scheduling hardware, God help you write a character level interfaces, language translation also has great god-level programmers to write me, and I stand so much a rookie giant who will be able to learn, or how these pay a big God worthy of it?

We write high-level language translation and os after dealing with the implementation of our code.

                  

 

Second, the introduction of computer hardware

       1. The role of hardware: instructions to run os.

  Big Three: CPU memory drives.

  Code written on the hard disk, the operating code is loaded into memory, cpu acquired code execution from memory, the code interpreter 01010 translated to os, os code is transmitted to the respective hardware operate by "nervous" on the motherboard.

  Code can not directly control hardware, os are carried out, the underlying language translation of the interface for the OS provided by the programmer is facing into written language, and there are middlemen between complex difficult to understand that we are shielding, we are more human-oriented high-level language. 

Three: the operating system boot process

  1. Power on the computer

  2.BIOS began to run, hardware detection: cpu, memory, hard drives, etc.

  3.BIOS read parameters in the CMOS memory, the boot device select

  4. Read the boot device from the contents of the first sector (MBR master boot record 512 bytes, 446 of the front guide information, the partition information 64, the last two bits of flag)

  The partition information reading module bootloader boot loader, the operating system boot

  6. The operating system then asks BIOS, to obtain configuration information. For each device, the system checks its device driver exists, and if not, the system will require the user according to the device driver. Once you have all of the device drivers, they will be transferred to the operating system kernel. Then about the initial form (such as process table), through the process that you need, and start the login program or GUI on each terminal

Four: Start the application process

  1. Double-click the shortcut

  2. Tell the operating system a file path

  3. operating system from the hard disk to read the file into memory

  4.cpu read data from the memory is performed

Guess you like

Origin www.cnblogs.com/gyxpy/p/11540274.html