PYTHON-STUDY-01 Computer Hardware Basics

Source: Internet
Author: User
Tags binary to decimal

1. What is Python?
Python is a programming language

2. What is a programming language? (*****)
As long as it is a language, the essence of the language is the same: language is a medium for things to communicate with another thing
Programming language is a medium for programmers to communicate with computers

3. What is programming? (*****)
Programming refers to the fact that a programmer writes to a file what he or she wants the computer to do based on the syntax format of a programming language.
So the result of programming is a bunch of files, this pile of files is the program

4, why to program? (*****)
The computer is like a human slave, the purpose of programming is that people want to enslave computers,
Let the computer replace the human to work, thus liberating the manpower

5. Fundamentals of computer hardware
CPU:X86-64 (* * * *)
What is x86 because the first Intel developed the CPU code called 8086, and later in this framework developed 80285, 80386 ..., so the CPU of this architecture is called the x86 architecture. Complex instruction set Basic we use and the server is this kind of architecture
What is the number of data bandwidths that 64-bit CPUs perform instruction at once per CPU from within
The CPU is backwards compatible, that is, 64 of the CPU can execute 32 of the program
32 of the CPU does not run 64 of the software

Memory: (* * * *)
Memory: Memory Bar
Advantages: Fast access speed
Cons: Loss of power data, small capacity

External memory: Disk
Advantages: Power loss data is not lost, you can permanently save data, large capacity
Cons: Slow access speed


Understanding: (* *)
Decimal
0 1 2 3 4 5 6 7 9

123
1* (10^2) + (10^1) + (10^0) =123

Binary
111
# Binary binary to Decimal
1* (2^2) +1* (2^1) + 1* (2^0) = 7

# decimal-to-binary (except for 2-take-rest method)


Storage unit (* * *)
A bits called 1bit
8bit=1bytes is called a byte
1024Bytes = 1KB
1024kb=1mb
1024mb=1gb
1024gb=1tb
1024tb=1pb

Supplemental Memory: (* *)
rom-> instructions for storing BIOS
Bios:basic INPUT ouput SYSTEM


(*****)
For a disk, the total time to find the data = Average Seek (5ms) + Average Latency (7200 RPM disk that is equal to 4ms 60/7200=8ms Half circle =4ms)
In order to avoid wasting time every time is 512B read and write once disk.

(**)
A circle of tracks.
The cylinder is actually the classification of the C disk D-disk.
Sectors 512B per size


6. Operating system
Start process
1 Power-On
2 bios-> Detection Hardware->cmos
3 Find Startup Disk-"read the first sector 512B (understanding: 446 Boot Information 64 partition Information 2 end flag bit)
4 Loading Bootloader
5 Read OS kernel (take over BIOS task, control calculation)

Summarize:
Focus One: The three core components of the computer, and their functions?

1. CPU Execution
2. Memory storage
3, hard disk storage

Key two: CPU, memory, hard disk working principle, explain how a program run from scratch?


Preview
6. Operating system
1, what is the operating system
2, why should have an operating system (what is the role of the operating system?) )
3, who will call the operating system

7. Basic Python syntax

PYTHON-STUDY-01 Computer Hardware Basics

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.