table of Contents
Computer Basics of programming
What is the programming language
Human and computer communication medium (conductor)
What is programming
Write a bunch of files in a programming language, to achieve some of the features
Why Programming
Freeing up labor
Computer basic components
CPU
Controller
Control hardware
Operator
Logical and arithmetic operations
Memory
External memory
- Advantages: large capacity, permanent preservation
- Cons: Slow
Main memory
- Pros: Fast
- Disadvantages: small capacity, power disappears
The application starts
- Double-click qq (qq find the path of the hard disk)
- Qq then read the contents into memory
- qq Start
input device
Input information, such as a mouse / keyboard
Output Device
Output information, such as display / printer
Computer Organization supplement
Multi-core CPU
Handle multiple things at a time
32 and 64
The computer 32 reads the disposable / 64-bit binary
Downward compatibility with 64-bit 32-bit computer can install the package
bus
Computer hardware connection, the human equivalent of nerves, blood vessels
Mechanical hard disk principle
Mechanical arm
Read data
Tracks
Storing data
Sector
Division track
Average seek time
5ms
The average delay time
7200r / min mechanical hard
\ [7200/60 = 120 (r / s) \\ 1/120 = 0.0083 (s / r) = 8.3 (ms / r) \\ 8.3 / 2 = 4.15 (ms / r) \ ]
The average time to find data
9.15ms
SSD
Solid state drive for data storage is based on solid state electronics (SSD, power data will be retained) and algorithms.
operating system
What is the file
Operating system out of the virtual storage units used to store data
What is the application procedure
It used to implement a demand
The role of the operating system
Simplify the complex operations of the hardware
Computer three major components
- Hardware (Hardware interact directly, CPU / memory / external memory)
- application
- operating system
Start application system
- Double-QQ (send instructions to the operating system)
- Sent to the CPU operating system instructions, CPU sends instructions to the memory
- Send commands to the hard disk memory, qq data is read into the memory
- qq Start
Operating system boot
- Boot, boot the temporary operating system
- Reading the real operating system on the operating system to the temporary storage paths ROM
- The operating system starts, the operating system is shut down temporarily