CS1311A Lecture 3 - Computer Hardware
CS1311A Lecture 3 - Computer Hardware
LESOTHO
---------------------------------------------------
CS1311A
COMPUTER APPRECIATION,
AWARENESS AND SKILLS
Course Objectives
Computer Literacy Computer System Computer Hardware
What you will learn? What you will learn? What you will learn?
Computer literacy definitions Basic functions of Tangible components of a
and benefits. computers and categories. computer.
What you will learn? What you will learn? What you will learn?
How to communicate with a Basic computer networking, The internet and basic
computer through programs. together with common computer security.
networking devices
STORAGE & MEMORY DEVICES
• Primary memory
• Secondary memory
STORAGE & MEMORY DEVICES
• Primary memory
• Memory capacity is important because it determines how much data can be processed at once.
o Cache memory
• It is a form of data storage that can be accessed randomly at any time, in any order and
from any physical location, allowing quick access and manipulation.
• It is volatile.
• It is the main 'working' memory used by the computer. When the operating system loads
from disk when you first switch on the computer, it is copied into RAM.
TYPES OF PRIMARY MEMORY
• It is non-volatile and retains instructions when the power to the computer is turned off.
• As the name suggests, it is a special type of memory chip that holds software that can be
read but not written to.
• Cache memory
• Two types of cache are memory cache and disk cache. We focus on memory cache
• Memory cache
• Helps speed the process of the computer because it stores frequently used instructions
and data.
• It has two types, L1 cache build directly in the processor chip with very small capacity
and L2 cache which is slightly slower but has much larger capacity.
SECONDARY MEMORY
• Secondary storage is designed to store very large amounts of data for extended periods of time.
• Secondary storage can have memory capacity of several terabytes or more and only small portions of that
data are placed in primary storage at any one time.
• It is non-volatile.
• It takes much more time to retrieve data from secondary storage than it does from primary memory.
• Magnetic
• Optical
• Electronic
MAGNETIC STORAGE
• Floppy disk
• Floppy disks store small amount of data typically not larger than 1.44MB.
• These small diskettes are used mainly to transport small files from one computer to
another.
• Hard disk
• Hard disks are built with metal or glass platters covered with a substance that allows data
to be held in the form of magnetized spots.
• Today hard disks are composed of more than one disk (also named as platter), which are
stacked on each other.
OPTICAL STORAGE
• Optical disks write data with a high power laser beam, which records data by burning tiny pits
onto the surface of the disk.
• In order to read data, a low power laser beam reads data by reflecting smooth areas, which are
interpreted as 1 bits, and not reflecting pitted areas which are interpreted as 0 bits.
EXAMPLES OF OPTICAL STORAGE
CD-ROM (Compact Disk – Read Only Memory) CD-R (Compact Disk – Recordable)
• This is an optical disk where information is stored at the • It is a CD format that allows users to use a CD-R drive to
time of manufacturing. write data, only once, onto a specially manufactured disk
that can then be read by a standard CD-ROM drive.
• Examples of CD-ROM are Music CD’s and software that
one buys from computer shops such as games.
CD-RW (Compact Disk – Rewritable) DVD-ROM (Digital Video Disk or Digital Versatile Disk)
• This type of media allows users to copy and erase data. • This optical disk looks like a normal CD but in fact, it can
Thus, this disk can be used over and over again. store much more data than a CD.
• Flash memory is non-volatile solid-state computer memory storage that can be electrically
erased and reprogrammed.
• It is a technology that is primarily used in memory cards and USB flash drives for general
storage and transfer of data between computers and other digital products.
• There are many examples of communication devices and we will look at a few below.
• Network interface card
• Network hubs
• Network switch
• Modem
• Network router
COMMUNICATION DEVICES
• Computers on a network need be able to communicate with the server and with other
computers. In order to do this, a network interface card(NIC) is required or a built-in
network chip is included on a motherboard.
• MODEM
• A modem is a device used to convert digital data to analogue data in order to transmit it
over the telephone network (MODulation).
• It will also convert the analogue data back into digital data when the computer is receiving
data from the telephone line (DEModulation).
• Network hub
• A hub, in the context of networking, is a hardware device that relays communication data.
A hub sends data packets (frames) to all devices on a network, regardless of any MAC
addresses contained in the data packet.
COMMUNICATION DEVICES
• Network Switch
• A network switch is a small hardware device that joins multiple computers together within
one local area network (LAN).
• A switch is different than a hub in that it keeps a record of all MAC addresses of all
connected devices. Thus, it knows which device or system is connected to which port.
When a data packet is received, the switch immediately knows which port to send it to.
COMMUNICATION DEVICES
• Network router
• It is responsible for sending network traffic to it’s correct destination. It works by reading the
destination network address within each data packet and sends it along it’s way. We can
have a number of routers on a network.
• Switches create a network. Routers connect networks. A router links computers to the
Internet, so users can share the connection. A router acts as a dispatcher, choosing the
best path for information to travel so it's received quickly.
COMMUNICATION DEVICES
• A bit is the smallest unit of information that can be stored or manipulated on a computer.
• The bits are bunched together so the computer uses several bits at the same time, such as for
calculating numbers.
• When a “bunch” consists of eight bits then it is called a byte. i.e. Byte = 8 bits
End of Lecture 3