How Does a Computer Work?
A computer functions in the following manner:
- The computer accepts input. Computer input is whatever is entered or fed into a computer system. Input can be supplied by a person (such as by using a keyboard) or by another computer or device (such as a diskette or CD-ROM). Some examples of input include the words and symbols in a document, numbers for a calculation, instructions for completing a process, pictures, and so on.
- The computer performs useful operations, manipulating the data in many ways. This manipulation is called processing. Examples of processing include performing calculations, sorting lists of words or numbers, modifying documents and pictures according to user instructions, and drawing graphs. A computer processes data in the CPU.
- The computer stores data. A computer must store data so that it is available for processing. Most computers have more than one location for storing data (the hard drive or C:\, and the floppy drive or A:\). The place where the computer stores the data depends on how the data is being used. The computer puts the data in one place while it is waiting to be processed and another place when it is not needed for immediate processing. The storage of data in the computer is called ‘online storage’ while the storage of data on computer tapes, diskettes or CD‑ROMs is called ‘offline storage’.
- The computer produces output. Computer output is information that has been produced by a computer. Some examples of computer output include reports, documents, music, graphs, and pictures. Output can be in several different formats, such as paper, diskette, or on screen.
How Does the Software Work?
Software
is the computerised instructions that operate the computer, execute particular
functions or tasks, and manipulate the data.
For software (the instructions) to perform various functions, it must be
programmed. That is, the instructions
need to be written in a programming language that the computer can
understand. Without a program, a
computer is useless.
Over the years, a wide range of programming languages have been
developed, including BASIC, FORTRAN, PASCAL, C++, JAVA, and so on. Each language has a unique set of words
(codes) that it understands and a special syntax for organising program
instructions.
The language the computer actually understands is called machine
language, which comprises numbers only.
This language is used by the computer to understand the programming
language and translate the terms into executable instructions. Lying between programming languages and
machine languages are assembly languages.
Assembly languages have the same structure and set of commands as
machine languages but they enable a program to use names instead of numbers.
Please note: most people who use computers today do not need to
worry about programming, machine, or assembly languages. This is because the
software being used today is written in a highly user-friendly manner and in a
way that does not require knowledge of the computer languages which were used
to create and use it.
There are two kinds of software,
- Systems Software and
- Applications Software.
Applications software includes programs that users access to carry out work. They include applications for the following
functions.
- Word processing is the most common applications software. The great advantage of word processing over using a typewriter is that you can make changes without retyping the entire document. Word processors make it easy to manipulate and format documents.
- Spreadsheets are computer programs that let people electronically create and manipulate spreadsheets (tables of values arranged in rows and columns with predefined relationships to each other). Spreadsheets are used for mathematical calculations such as accounts, budgets, statistics and so on.
- Database management applications are computer programs that let people create and manipulate data in a database. A database is a collection of related information that can be manipulated and used to sort information, conduct statistical analyses or generate reports.
- Presentation packages and graphics are computer programs that enable users to create highly stylised images for slide presentations and reports. They can also be used to produce various types of charts and graphs. Many software applications include graphics components including: paint programs, desktop publishing applications and so on.
- Communications applications typically include software to enable people to send faxes and emails and dial into other computers.
Software
can be either ‘proprietary’ (also called ‘closed’) or ‘open’. Proprietary software is privately owned and
controlled. A proprietary software
design or technique is one that is owned by a company, which will usually not
divulge specifications that would allow other companies to duplicate the
product. Increasingly, proprietary
software is seen as a disadvantage in many organisations; users prefer to use
‘open’ software, which is software designed using specifications that are
publicly accessible. The great advantage
of open software is that anyone can create add-on products for it because they
can understand how it was designed.
People using open software can mix and match products from different
manufacturers. By making software public, however, a manufacturer allows others
to duplicate its product, which many manufacturers do not want.
How Does a Computer Process Information?
When data is input into a computer, the numbers or words we
understand are translated into a binary numbers system. Binary is the language of computers. Everything you type, input, output, send,
retrieve, draw and so on is, in the end, converted to the computer’s native
language: binary.
In
the decimal system, commonly used in most countries, each digit represents a
value of 10. For example, the number 103
would break down as follows:
1 x 100
|
=
|
100
|
0 x 10
|
=
|
0
|
3 x 1
|
=
|
3
|
103
|
=
|
103
|
In
the binary system, each digit position represents a value of 2. Because computers use the binary system,
powers of 2 play an important role. This
is why everything in computers seems to come in 8s (2 to the 3rd
power), 64s (2 to the 6th power), 128s (2 to the 7th
power), and 256s (2 to the 8th power). Therefore, in the binary system, the number
103 would break down as follows:
1 x 64
|
=
|
64
|
1 x 32
|
=
|
32
|
0 x 16
|
=
|
0
|
0 x 8
|
=
|
0
|
1 x 4
|
=
|
4
|
1 x 2
|
=
|
2
|
1 x 1
|
=
|
1
|
1100111
|
=
|
103
|
The values in a binary system -- the 0s and 1s -- are called ‘binary
digits’ or bits.
The computer’s electronic circuits have only two states, on or off,
and therefore can only understand 0s and 1s, which may represent such opposites
as on or off, yes or no, or up or down.
This is why all computers use the binary system. In order to make the bits useful, they are
combined into ‘bytes’ of information.
Computer
programmers have developed codes for various bytes of information, so that they
may be read by different computer programs.
For example, one code might define the letter A as ‘11000001’ and the
letter B as 11000010’. The number 6
might be defined as ‘11110110’ and the number 8 as ‘11111000’. When the person entering data strikes the A
key on the keyboard, the computer registers it as ‘11000001’. When he or she enters the B, the computer
reads it as ‘11000010’. Similarly, the
number 6 is understood by the computer as ‘11110110’ and the number 8 as
‘1111100’. In this way, the computer can
store words and numbers as binary digits and then retrieve them and convert
them back into words or numbers as required.
As discussed earlier, this work of manipulating, storing
and processing the data takes place in the Central
Processing Unit, the computer’s main memory.
The CPU consists of an arithmetic and logic unit, or ALU, a control
unit, and a set of registers.
- The arithmetic and logic unit is the portion of the CPU where arithmetic and logical operations take place.
- The control unit is the part of the CPU that supervises the general operations of the computer.
- The registers are devices that hold data inside the computer’s memory long enough to execute a particular function, such as indexing, calculating, sorting or otherwise manipulating data. They are the CPU’s own internal memory.
Data
travels from one part of the computer to another through a kind of path known
as a bus.
Similar to a school bus for school children, a computer
data bus picks up a load of data from one of the components on the main
computer board and then transfers the data to another component on the main
computer board. The main circuit board
of a microcomputer is also known as the motherboard. The motherboard is the principal board that
has connectors for attaching devices to the bus. Typically, it contains the CPU, memory and
basic controllers for the system. The data bus is really a series of electrical
circuits that connect the various electrical elements on the main board.
The
data are input into the computer and processed in the CPU. They travel along the bus to be stored in the
computer’s memory. The amount of memory
available is described in bytes of information, referring to the combination of
bits representing characters. The higher
the number of bytes the more memory the computer has. Today’s computers hold ‘megabytes’ or even
‘gigabytes’ of data. A megabyte is a
unit of one million bytes; a gigabyte is one billion bytes,
and a terabyte is one trillion bytes. If a computer has a memory of 64 megabytes,
then it can hold 64 million bytes of information.
Data
can be stored so that it is readable again only using the software with which
it was created, or it can be stored in other formats, so that it may be
transferred or used by other software programs.
There is a standard character code used to store data so that it may be
used by other software programs; this code is called ASCII or American Standard
Code for Information Interchange. The
ASCII code assigns a specific pattern of bits to each character, as described
above. Another code that may be found, especially in IBM-brand mainframe
computers, is EBCDIC, or Extended Binary Coded Decimal Interchange Code. The important point to remember about these
codes is that their main value is to store information so that it is readable
by other computers. By using ASCII or
EBCDIC, it is possible for people to retrieve and use someone else’s data using
a different type of hardware or software.
The main disadvantage of using ASCII or EBCDIC is that the formatting or
other special qualities of computerised information may be lost.
What is Computer Memory?
As defined earlier, memory refers to the
temporary internal storage areas within a computer. The term memory is usually
used as shorthand for ‘physical memory’, which refers to the actual chips
capable of holding data. Some computers
also use ‘virtual memory’, which expands physical memory onto a hard drive.
The main type of memory and the most familiar to
users is random access memory (RAM). RAM
is the same as main memory. A computer
can both write data into RAM and read data from RAM.
Every time a user turns on his or her computer,
a set of operating instructions is copied from the hard disk into RAM. These
instructions, which help control basic computer functions, remain in RAM until
the computer is turned off. Most RAM is volatile, which means that it
requires a steady flow of electricity to maintain its contents. As soon as the power is turned off, whatever
data was in RAM disappears. The contents of RAM are necessary for the
computer to process data. The results of the processing are kept
temporarily in RAM until they are needed again or until they are saved onto the
hard disk or other storage device.
Today
the storage capacity of RAM is measured in megabytes (MB). PCs (microcomputers)
typically have between 16 and 64 MB of RAM, which means they can hold between
16 and 64 million bytes of data (a standard A4 page of text typically holds
about 2,000 bytes or characters of text).
Other types of memory include
- ROM (read only memory): unlike RAM, ROM is non-volatile and only permits the user to read data. Computers almost always contain a small amount of read‑only memory that holds instructions for starting up the computer.
- PROM (programmable read-only memory): a PROM is a memory chip on which you can store a program. Once the PROM has been used, you cannot wipe it clean and use it to store something else. Like ROMs, PROMs are non-volatile.
- EPROM (erasable programmable read-only memory): an EPROM is a special type of PROM that can be erased by exposing it to ultraviolet light.
- EEPROM (electrically erasable programmable read-only memory): an EEPROM is a special type of PROM that can be erased by exposing it to an electrical charge.
How Are Data Stored?
It is very important to distinguish between memory, which refers to
the circuitry that has a direct link to the computer processor, and the
storage, which refers to media such as disks that are not directly linked to
the processor. Remember, a storage
device is anything that is used to store computer data. Floppy disks, hard disks, optical disks, CDs
and magnetic tapes are all types of storage device.
Physical
storage refers to how data are actually kept on the storage disk. The most commonly used medium for storage is
magnetic storage. With magnetic storage
the computer stores data on disks and tape by magnetising selected particles of
an oxide‑based surface coating. The
particles retain their magnetic orientation until that orientation is
changed. Thus magnetic disks and tapes
are modifiable storage media. The two
most popular types of magnetic storage media are hard disks and diskettes. Magnetic tape provides a third type of
magnetic storage, and optical disk is a new storage medium. Following is a discussion of each; the
definitions included earlier are repeated.
·
Hard drive or hard disk storage
provides faster access to files than a diskette. A hard disk platter is a flat,
rigid disk made of aluminium or glass and coated with a magnetic oxide. A hard disk consists of one or more platters
and their read-write heads. A read-write
head is the device that reads the data from the disk platter into the
computer. It also records (or ‘writes’)
data onto the platters. Hard disk
platters in microcomputers are typically 3½ inches (about 10 centimetres) in
diameter: the same size as the circular mylar disk in a diskette. However, the storage capacity of a hard disk
far exceeds that of a floppy disk. Also,
the access time of a hard disk is significantly faster than a diskette. Unlike diskettes, which begin to rotate when
one requests data, hard disks are continually in motion, so there is no delay
as the disk spins up to speed. Like
diskettes, hard disks provide random access to files by positioning the
read-write head over the sector that contains the requested data.
·
Diskettes get another name –
floppy disk – from the thin mylar disk.
If one cuts open the disk casing (not recommended because the disk will
be ruined) one would see that the mylar disk inside is thin and “floppy”. Diskettes are also called floppies. Although today’s microcomputers typically use
3½ inch (about 10 centimetre) disks, you may still find 5¼ inch (about 15
centimetre) disks that were popular many years ago. Finding a disk drive to read 5¼ inch disks may be very difficult. Diskettes are
generally used for transporting or shipping data files or for making duplicate
copies of data files for back-up purposes.
The storage capacity of a diskette varies but is considerably smaller
than that of a hard drive.
Since
the 1960s, magnetic tape has been a popular form of mainframe computer
storage.
When
IBM introduced its first microcomputer in 1981, the legacy of tape storage
continued in the form of a cassette tape drive, similar to those used for audio
recording and playback. Using tape as a
primary storage device, however, instead of a hard disk is slow and inconvenient because tape requires sequential access
rather than random access.
Sequential access means that data
is stored and read as a sequence of bytes along the length of the tape. To find a file stored on a microcomputer tape
storage device, one has to advance the tape to
the appropriate location of the file, then wait for the computer to slowly read
each byte until it finds the beginning of the file. Like an audio cassette, for example, a user
must go through the tape in sequence to find the part he or she wants.
Microcomputer
users quickly abandoned tape storage for the convenience and speed of random
access disk drives. Recently, however,
tape storage for microcomputers has experienced a revival, not as a principal
storage device but for making backup copies of the data stored on hard
disks. The data on magnetic storage can
be easily destroyed, erased, or otherwise lost.
Protecting the data on the hard disk is of particular concern to users
because it contains so much data, which could be difficult and time consuming
to reconstruct. This is why backups are
so important.
A
tape backup is a copy of the data from a hard disk, stored on magnetic tape and
used to recover lost data. A tape backup
is relatively inexpensive and can rescue an organisation from the overwhelming
task of trying to reconstruct lost data.
The
most popular types of tape drives for microcomputers also use tape cartridges,
but there are several tape specifications and cartridge sizes. A tape cartridge is a removable magnetic tape
module similar to a sound or video cassette tape. Quarter inch tape, called QIC, is a tape
cartridge that contains ¼ inch (approximately ½ centimetre) wide tape.
Depending on tape length, QIC tape capacities range from 340 MB to 2
gigabytes. Digital audio tape, called
DAT, was originally an audio recording format, but is now also used for data
storage. The 4mm wide DAT tape format
storage capacity ranges from 2 gigabytes to 12 gigabytes.
In
addition to magnetic storage, there is also optical storage.
With
optical storage, data is burned into the storage medium using beams of laser
light. The burns form patterns of small
pits in the disk surface to represent data.
The pits on optical media are permanent, so the data cannot be
changed. Optical media are very durable,
but they do not provide the flexibility of magnetic media for changing the data
once they are stored.
There
are three types of optical disks.
- CD-ROM’s are the most popular type of optical storage. CD-ROM stands for Compact Disc Read Only Memory. A computer CD-ROM disk, like its audio counterpart, contains data that has been stamped on the disk surface as a series of pits. To read the data on a CD-ROM an optical read head distinguishes the patterns of pits that represent bytes. CD-ROM disks provide tremendous storage capacity. CD-ROMs usually come with data already written onto them. These days most applications software is provided on CD-ROM.
- It is now possible for computer users to write data to an optical disk. These are known as WORM disks, which stands for ‘Write Once Read Many’. A single CD holds up to 680 megabytes, equivalent to over 300,000 pages of text in character format, and these disks are quite durable. These CDs are know as CD re‑recordable (CD-R). There are other types of WORM disks, although there is no standard for these.
- There is a third type of optical disk which can be erased and use to rewrite new information. These are sometimes known as EO (erasable optical) disks and CD‑RW (CD rewritable).
Magneto-optical disks combine magnetic disk and CD-ROM
technologies. Like magnetic media they
can read and written to and like floppy disks they are removable. They can store over 200 MB of data, and speed
of access to this data is faster than a floppy but slower than a hard
drive. There is no universal standard
for these yet. CD‑ROMs and
magnet-optical disks are very useful for storing images. These take up much more storage space than
data in character format, such as in word-processed files.
No comments:
Post a Comment