Computer Fundamentals

1. How does a von Neumann computer work?

 

   cup (calculator + controller + register) <-----> memory (machine code) <-------> input and output devices

 

2. How to solve the problem of speed matching in the computer now?

 

   Ride a donkey cart vs ride a rocket

   cup       0.3ns      1s

   DRAM   120ns     6min
   Rotational disk   1-10ns    1-12month

   internet       181ms    19years

  Solution: Improve other device configuration ---> Impossible temporarily

  Solution: then increase the utilization of the cpu and keep the cpu busy

  •   Synchronous Asynchronous
  •   Sequential - concurrent
  • Multi-core, parallel three cpu parallel
  • Increase the middle layer - cache For example, the cpu has register L0, the chip has register L1L2, and then the memory L3

3. Do you know what happens when the power is pressed?

 

  1. Mainboard power supply
  2. Tell the cpu to start restart
  3. cup finds a specific memory address, here is a jump instruction to jump to the system BIOS startup code
  4. Read the MBR code to start the self-check. If there is a problem, there will be beeps of different frequencies. If there is no problem, the startup is successful.
  5. The first 446 in the MBR is loading, the middle 64 is the partition, and the active partition can be installed in the system. The last two bytes are the system status code.

4. The life of Hello World

 

  1. After the program is written, the JVM compiles and generates a binary machine instruction file, which is stored on the hard disk
  2. Run the program, the operating system puts the hello world from the hard disk in the memory
  3. The cpu starts to execute the machine language instructions in the main program
  4. Machine language instructions move "hello world" from memory to registers
  5. Machine language instructions copy the register data to the display for display

 

   

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326747307&siteId=291194637