Java Basics - Getting Started with Programming

1. Bits and bytes

A 0 or a 1 is stored as a bit, which is the smallest storage unit in a computer. ·The most basic storage unit in a computer is a byte.

Each byte consists of 8 bits.

A computer is a series of circuit switches. There are two states for each switch: off (off) and on (on). Its value is 1 if the circuit is on. Its value is 0 if the circuit is off. (the bottom layer of the computer: binary)

  • A 0 or a 1 is stored as a bit, which is the smallest storage unit in a computer .

  • The most basic storage unit in a computer is a byte . Each byte consists of 8 bits.

Computer storage capacity is measured in bytes and multibytes.

  • Kilobyte (kilobyte, KB) = 1024B

  • Megabyte (megabyte, MB) = 1024KB

  • Gigabyte (gigabyte, GB) = 1024MB

  • Terabyte (terabyte, TB) = 1024GB

2. Von Neumann Architecture

Von Neumann structure_Baidu Encyclopedia (baidu.com)

The von Neumann structure, also known as the Princeton structure, is a memory structure that combines program instruction memory and data memory. The program instruction storage address and the data storage address point to different physical locations of the same memory, so the program instructions and data have the same width. For example, the program instructions and data of Intel's 8086 central processing unit are 16 bits wide.

Mathematician von Neumann proposed three basic principles of computer construction:

That is, the use of binary logic , program storage and execution, and the computer is composed of five parts ( calculator, controller, memory, input device, output device ). This set of theories is called the von Neumann architecture.

⚪Features

Guess you like

Origin blog.csdn.net/m0_52982868/article/details/128566238