Chapter 0: basic computer knowledge

A, x86 architecture
  personal computer is often called x86 architecture computer
 earliest developed the Intel CPU code is 8086, and later appeared in the 80286, 80386 ... (Their main difference is the microinstruction set)
 new a generation of 64-bit CPU , is called the x86_64 (bits is a maximum amount of data read CPU! 64 bits represent a CPU can read 64bits, 2 ^ 64

Second, the common unit of the computer above (volume, velocity)

  1. Why labeled 500G hard drive, display around 460G capacity after formatting?
    The label used is a decimal, 500x1000x1000x1000
    use binary 500x1000x1000x1000 / (1024x1024x1024) when converted into a file size = 466GB
  2. Network speed Mbps (Mbit Mbits per second transmitted per second)
    daily seen 20M / 5M, 'bit is omitted, i.e., units of megabits per second, in terms of file size in byte, will have divided by 8, the result is 2.5 mbyte / 625Kbyte

Three, CPU frequency
 CPU frequency is the number of times per second that can be made to work CPU
 Intel i5-6200CPU 2.4GHz represent the work of 2.4x10 ^ 9 times per second

Fourth, the hard
 work process: a spindle motor rotates the disk to the disk, then the robot can be extended so that the read head in a disk read and write operations on top of the disc
[image dump outer link fails, the source station may have security chain mechanism, it is recommended to save the picture down uploaded directly (img-PipGhbQd-1582378409531) ( https://user-images.githubusercontent.com/56629574/66991664-1a499c00-f0fb-11e9-9edd-d64bccd8c474.png)]

The outer concentric circle area is relatively large, so in order to take advantage of these spaces, the outer layer has more sectors. General reading and writing data from outer to inner wrote.
Fifth, the operation of the software program

  1. Machine program with the compiler
    machine language program needs to understand the machine 0,1,
    the compiler is able to write a human program is compiled into machine code, but in this environment, but also consider the overall hardware system, allocate their own memory and other problems.

  2. Operating System: All actions should be done by the hardware it
    ① kernel: control hardware related capacity (hard disk access, network functions, CPU and other resources made)
    ② system call: Known hardware controlled by the kernel, then the developer will refer to this program kernel function, so too much, provides a set of interfaces developed by engineers to develop software for the operating system, as long as it is easy to comply with the development interface development software.
    System call purpose: to turn into a high-level language core functions, core functions to adjust hardware.
    ③ the role of the operating system
    [Pictures dump outside the chain fails, the source station may have a security chain mechanism, it is recommended to save the pictures uploaded directly down (img-L2rTwvZq-1582378409536) ( https://user-images.githubusercontent.com/56629574/ 66995795-29801800-f102-11e9-8f91-81fefe179c61.png)]
    computer system consists of hardware, operating system kernel key management hardware, computer systems provide a reasonable allocation of resources, so as long as different hardware, the kernel must be changed. And because the core will allocate resources of the computer system, but also to provide all applications, users can use the operating system.
    In order to protect the kernel and make the program easy to develop, in addition to the operating system kernel also provides a development interface.
    To sum up: the core software and have a great relationship, little to do with hardware; hardware with a relatively large core relationship; user and application-related
    extended concept:

  • The core operating system direct reference hardware specifications, so the operating system can not run the same under different hardware architecture

  • Operating system just to manage the entire hardware resources, so the absence of applications, operating systems just let the system host in the host ready state, no other function.

  • Application Development Reference operating system development interface, so that the application can only run on the operating system does not run on other operating systems,
    six core functions of the operating system

  1. System Call Interface
  2. Program management: CPU processing allows multiple tasks, allowing efficient allocation of CPU resources
  3. Memory Management
  4. Document Management
  5. Driving means
    driving reasons: common hardware already in the host, but the newer hardware, the operating system is not known. How to drive this new operating system hardware it? Usually provide a driver development interface to the hardware provider, according to this design-driven interface to their hardware. In this way, as long as the user to install the driver, naturally, can drive a piece of hardware in their operating system above.
    The upper words meaning:
    ① operating system must be able to drive hardware, application to use the hardware features
    ② operating system development interface, hardware manufacturers create a driver
    ③ To use the hardware feature, you must have a driver
    ④ drivers from the manufacturer provided, regardless of operating system developers

[Image dump the chain fails, the source station may have security chain mechanism, it is recommended to save the picture down uploaded directly (img-No3pWAov-1582378409537) (https://user-images.githubusercontent.com/56629574/66998378-baf18900-f106 -11e9-8937-4213aeec03b8.png)]

Published 552 original articles · won praise 88 · views 260 000 +

Guess you like

Origin blog.csdn.net/jiangshangchunjiezi/article/details/104451099