In this internet age, almost everyone is dealing with computers, but most of them are even some it "insider", it may not be a lot of knowledge of computers, perhaps most people only know how to hit the keyboard, press the mouse, download software or browse the pages or something, but as to what the computer is composed of, or specific how to work is not very understanding, today small make a brief summary to help you have a preliminary understanding.
The computer architecture consists of 5 parts:
1. Arithmetic device
2. Controller
The first and second together are simply the cups of our computer, such as an adder, Addend and Summand are taken from memory by the controller. Of course, the Cup also includes registers (temporary storage data), cache (because the CPU runs much faster than the memory execution data, so can be cached to improve the overall speed of computer processing), so judging the cup is good or bad, not only to see the CPU has a few cores and the main frequency, but also to see the cache parameters.
3, Memory: Simply speaking, we often say that the memory, which can store data and instructions.
4. Input device: keyboard, mouse, etc.
5. Output device: Display, etc.
Also: the hard drive is a secondary storage device that can be used as an input device and as an output device
How can a computer handle several programs at the same time?
Cups are fragmented by time, memory is partitioned by space, but how specific resources are allocated to each program requires the operating system to collaborate.
Operating system concept: is a general software, this software does not realize the specific function, it is in the program to play a cooperative function, to achieve a reasonable allocation of resources. The program is not able to work directly with the hardware device, need through the operating system of this middleware, the operating system can simply include: Kernel and library files. A program operates on a hardware device by calling the library file, because the kernel is very low-level. A library file is code that some companies or organizations write to implement some specific functionality.
This article is from the "Forget the Past" blog, please be sure to keep this source http://xujingbo.blog.51cto.com/4633099/1811681
Computer architecture composition and hardware and software working principle