Documente Academic
Documente Profesional
Documente Cultură
1. Data Representation
i. The Binary System
Binary Arithmetic
Bits – a binary digit.
Byte – 8 bits
Kilobyte – 1024 bytes (210 bytes)
Megabyte – 1024 x 1024 bytes
Gigabyte – 1024 x 1024 x 1024 bytes
Terabyte – 1024 x 1024 x 1024 x 1024 bytes
Place Values
the values are doubled as you add more digits starting from the least
significant bit
128 64 32 16 8 4 2 1
Most significant bit
Least significant bit
Bitmapped images store the screen display as a set of values of each pixel
colour for the whole document. This can use a large amount of memory.
File size = height x breadth x colour depth.
Compression is used to reduce the file size of bitmapped images. Photographs
are typical bit mapped images.
Vector graphics just store the attributes of each object e.g. for a circle, object
number, type of object, X and Y coordinates of centre, radius, line thickness,
line colour, fill colour, line pattern, fill pattern. Vector graphics use less
memory and are resolution independent, as the resolution of the screen does
not affect the stored details.
2. Computer Structure
i. The Two state machine
The processing and storage devices have only two states ‘ON’ and ‘OFF’,
represented using the binary system - ‘1’ and ‘0’.
Arithmetic
and Logic Control Bus
Control Unit
Unit (ALU) Read & Write
Buses are the sets of wires connecting the CPU to the main
memory and peripherals
Address Bus carries address information from the CPU to main memory or
peripherals. It is unidirectional. The width of the address bus determines the
n
maximum amount of memory that the computer can have. This is 2 where n
is the width of the address bus.
Data Bus carries data between the CPU and the memory or peripherals.
During a write operation data is carried from the CPU and in a read operation,
to the CPU. It is bi-directional. The width of the data bus determines how
much data can be transferred in a single operation.
Control Bus is made up of a number of separate wires, connecting the control
unit to memory and peripherals.
Read and Write wires
Clock wire carries clock pulses, which keep the CPU and other units in
step. The clock rate is measured in hertz (MHz or GHz).
Interrupt wires carry signals to the CPU, which can cause the CPU to
break in the carrying out of its program. The CPU may be able to
ignore the interrupt (maskable) or not (non-maskable interrupt - NMI).
Reset line is used to return the CPU to its initial state. E.g. used to
recover from ‘crashes’.
RAM is volatile memory - data held in RAM is lost when the power is
switched off. RAM holds the computer’s programs and data while they are
being processed.
DRAM (Dynamic RAM) is normal RAM and needs to have its contents
refreshed otherwise the contents are lost.
SRAM (Static RAM) doesn’t need refreshed as long as power is applied. It is
used for holding date etc when the computer is switched off; power being
supplied by a rechargeable battery. SRAM is also fast and used for cache
memory.
Cache memory is memory close to (or in) the processor, which is used to
hold often-used instructions to speed up processing.
VRAM (Video RAM) is used to hold the data, which makes up the screen
display. It is related to the number of colours and screen resolution. It may be
part of the main memory or, more usually, on a separate graphics card.
Virtual Memory
With limited memory, there may be insufficient room for the required
program(s) and data. Virtual memory uses the hard disc as a temporary
storage area and swaps programs and data between memory and hard disc as
required. This is much slower than just using RAM.
Bus Width
Increasing the data bus width will increase the amount of data fetched in each
cycle and hence increase system performance.
Increasing the width of the address bus increases the maximum amount of
memory that the computer could have. More memory allows more programs
and data to be loaded at the same time, which can improve productivity. Also
with a larger memory, slower virtual memory does not need to be used as
often.
Clock Speed
The clock generates a series of pulses at a constant rate, which keeps
everything that the CPU does in time. The faster the clock speed, the faster
the operations will be carried out. Remember that the overall speed is
determined by the slowest component.
Memory
Adding more memory can speed up the computer (see i above). Also some
memory has faster access time than other types. Use of cache memory made
of fast static RAM can also improve performance.
ii. Hardware
Hardware should be selected in terms of appropriate characteristics including
resolution, capacity, speed, cost and compatibility
iv. Interfaces
An interface is the hardware (and associated software) needed to allow
communication between the CPU and peripheral devices and to compensate for
any differences in their characteristics.
3. Networking
i Nodes and Channels
Networked computers can exchange data and messages.
Each computer on the network is called a station, terminal or node. They can
be connected by different means e.g. by cable, which could be wire (most
common is UTP – Unshielded Twisted Pair) or optical fibre or radio
(wireless) links. The means of connection is the communications channel.
ii Mainframe
This is very large computer, which may be connected to hundreds of
terminals, many of which may be dumb terminals with no processing power.
Most of the processing will be done by the mainframe processor, which shares
its time between the terminals – a multi-access system.
Resource allocation
The OS allocates resources to other programs such as applications. For example:
Scheduler to share processor - batch, foreground/background, timesharing
Memory management – e.g. Virtual memory paging, swapping memory
contents to hard disc
ensures drivers are given access to hardware devices
Mechanisms for accounting; limit enforcement - e.g. no. of pages printed, file
space per user etc.
Supported
Colour Supports
compression on Web Used for
depth transparency
Pages
Yes, lossy
Jpeg – Joint Compression
Photographic can be varied. Up to 24 Photographs,
No yes
Expert Group More bit pictures on Web
compression,
less resolution
Gif –
Graphics Web Graphics
Interchange Yes, lossless Up to 8 bit Yes Yes with blocks of
Format colour
TIFF – 24 bit
Tagged Saving high
Not in standard colour or 8
Image File No No resolution
TIFF bit
Format graphics.
greyscale
File viruses
infect program files. These viruses normally infect executable code,
such as .com and .exe files.
They can infect other files when an infected program is run from
floppy, hard drive, or from the network
Macro viruses
The virus code written as a macro mainly infects data files (especially
Microsoft Office files.)
Because of the ease with which these viruses can be created, there are
now thousands of them in circulation.
Replication
They spread as files are copied and sent between computer users.
Camouflage
It is possible for a virus to avoid detection by changing its
characteristics from that which detection software is programmed to
look for.
Watching
The virus damage routines may activate when certain conditions are
met e.g. opening a particular application or on a particular date.
Delivery
This is how the virus gets from one computer to another.
o Infected disks brought in from the outside
o E-mail now provides the ideal delivery vehicle.
v. Worms
Worms spread from computer to computer, but unlike a virus they do
not infect other files.
A worm takes advantage of data transport features on your system e.g.
using email, which allows it to travel unaided. It could send out
hundreds or thousands of copies of itself.
The end result in most cases is that the worm consumes too much
system memory (or network bandwidth), causing Web servers,
network servers, and individual computers to stop responding.