Before
we start programming you need to know some basic hardware architecture in order
to understand how computer works. In next figure the schematic is show which
describes basic computer hardware.
The definitions of these parts are as follows:
Central
processing unit – is the electronic circuitry within a computer that carries
out the instructions of a computer program by performing the basic arithmetic,
logical, control and input/output operations specified by the instructions.
Main
memory - is used to store information
that the CPU need in a hurry. The main memory is nearly as fast as the CPU. But
when computer is shut down the data on main memory vanishes.
Secondary
memory – is also used to store information, but it is much slower than the main
memory. The advantage of the secondary memory is that it can store information
even when there is no power to the computer. Examples of secondary memory are
disk drives or flash memory.
Input
and output devices are keyboard, mouse, speaker, touchpad, screen etc. They are
all ways that enables us to interact with computer.
Network
connection – to retrieve information over network. We can think of the network
as a very slow place to store and retrieve data that might not always be up. So
in a sense the network is similar but slower and unreliable Second Memory.
Unreliable because sometimes network can be down so you can’t access your data
on Cloud.
As
a future programmer you need to know how computer architecture works and how to
use each of these resources to solve the problem that you need solving or
analyze the data you need. When writing program you’re “talking” to the CPU and
telling it what to do next. Sometimes you will tell CPU use main memory, or
search for the file on secondary memory, upload some file to network etc.
Nema komentara:
Objavi komentar