Lecture-8 Computer Fundamentals
Lecture-8 Computer Fundamentals
-271
Presented By
Saadman Sakib
Lecturer,
Department of CSE,
CUET
McGraw-Hill TechnologyEducation Copyright ©2006byThe McGraw-Hill Companies, Inc. All rights reserved.
Parts of the Computer System
• Hardware
– Mechanical devices in the computer
– Anything that can be touched
• Software
– Tell the computer what to do
– Also called a program
– Thousands of programs exist
• Data
– Pieces of information
– Computer organize and present data
• Users
– People operating the computer
– Most important part
– Tell the computer what to do
Essential Computer Hardware
• Processing devices
– Brains of the computer
– Carries out instructions from the program
– Manipulate the data
– Most computers have several processors
– Central Processing Unit (CPU)
– Secondary processors
– Processors made of silicon and copper
Essential Computer Hardware
• Memory devices
– Stores data or programs
– Random Access Memory (RAM)
• Volatile
• Stores current data and programs
• More RAM results in a faster system
– Read Only Memory (ROM)
• Permanent storage of programs
• Holds the computer boot directions
ROM
RAM ROM
1.Stores the currently active programs 1.Stores certain fixed routines such as
and their data the boot-up routines.
2.RAM is volatile 2. ROM is non-volatile
3.The contents of RAM can be changed 3. The contents of ROM cannot be
or deleted changed or deleted
4. RAM stands for random access 4. ROM stands for read only memory
memory
5. Writing data to a RAM chip is a faster 5. Writing data to a ROM chip is a slow
process process
8
Essential Computer Hardware
• Resolution
– Number of pixels on the screen
– Higher number creates sharper images
– Higher number creates smaller images
Monitors and Video Cards
• Eyestrain:
– Fatigue of the eyes
– Steps to avoid
• Choose a good monitor
• Place the monitor 2 – 3 feet away
• Center of screen below eye level
• Avoid reflected light
• Electronic magnetic fields (EMF)
– Generated by all electronic devices
– EMF may be detrimental to health
– Steps to avoid:
• Keep the computer at arms length
• Take frequent breaks
• Use an LCD monitor
Ergonomics and Input Devices
• Ergonomics:
– Study of human and tool interaction
– Concerned with physical interaction
– Attempts to improve safety and
comfort
• Repetitive Strain Injury (RSI):
– Caused by continuous misuse of the
body
– Many professions suffer from RSI
• Carpal Tunnel Syndrome:
– Carpal tunnel is a passage in the wrist
– Holds nerves and tendons
– Prolonged keyboarding swells tendons
Ergonomics and Input Devices
• Registers
– Number of bits processor can handle
– Word size
– Larger indicates more powerful computer
– Increase by purchasing new CPU
• Virtual RAM
– Computer is out of actual RAM
– File that emulates RAM
– Computer swaps data to virtual RAM
• Least recently used data is moved
• The computer‟s internal clock
– Quartz crystal
– Every tick causes a cycle
– Speeds measured in Hertz (Hz)
• Modern machines use Giga Hertz (GHz)
5A-166
Affecting Processing Speed
• CD-ROM:
– Most software ships on a
CD
– Read using a laser
• Lands, binary 1,
reflect data
• Pits scatter data
– Written from the inside
out
– CD speed is based on the
original
• Original CD read 150
Kbps
• A 10 X will read
1,500 Kbps
– Standard CD holds 650
MB
Printers
35
Daisy Wheel Daisy Wheel
– Machine Language
• Uses binary code
• Machine-dependent
• Not portable
• Assembly Language
– Uses mnemonics
– Machine-dependent
– Not usually portable
• High-Level Language (HLL)
– Uses English-like language
– Machine independent
– Portable (but must be compiled for different platforms)
– Examples: Pascal, C, C++, Java, Fortran
Machine Language
• The representation of a computer program which is actually
read and understood by the computer.
– A program in machine code consists of a sequence of machine
instructions.
• Instructions:
– Machine instructions are in binary code
– Instructions specify operations and memory cells involved in the
operation
Example: Operation Address
• Executable program
– Output from linker/loader
– Machine language program linked with necessary libraries &
other files
– Files usually have extension „.exe‟
•Compilers: Translate a source (human-
Compiler vs. Interpreter writable) program to an executable (machine-
readable) program
Source code
Compiler Interpreter
• Pros • Pros
–Less space –Easy debugging
–Fast execution –Fast Development
• Cons • Cons
–Slow processing –Not for largeprojects
–Partly Solved –Exceptions: Perl,Python
–(Separate compilation) –Requires morespace
–Debugging –Slower execution
–Improved thruIDEs –Interpreter in memory allthe time
The Uses of a Network /Main benefits of using a computer
network
❖ Simultaneous Access
o In organizations, many people may need to use the same data or programs. A
network solves this problem.
o Managers may assign access rights to users. Some users may only be able to read
data, others may be able to make changes to existing files.
❖ Shared Peripheral Devices
❖ Because peripheral (external) devices like printers can be expensive, it is cost-
effective to connect a device to a network so users can share it.
❖ Through a process called spooling, users can send multiple documents (called print
jobs) to a networked printer at the same time. The documents are temporarily
stored on the server and printed in turn.
❖ Personal Communication
o One of the most common uses of networks is for electronic mail (e-mail).
o An e-mail system enables users to exchange written messages (often with data files
attached) across the local network or over the Internet.
❖ Easier Backup
o Networks enable managers to easily back up important data.
Bus Topology
190
Bus Topology
Advantages:
Disadvantages:
192
Star Topology
Advantages:
Disadvantages:
Ring Topology
194
Ring Topology
Advantages:
1. This type of network topology is organized
2. All the traffic flows in only one direction at very high speed
3. Each computer has equal access to resources
4. The adding or removing of network nodes is easy
Disadvantages:
1.Each packet of data must pass through all the computers
between source and destination. This makes it slower than star
topology.
2.If one workstation or port goes down the entire network gets
affected.
3.Network is highly dependent on the wire which connects
different components.
Comparison Among the Merits and Demerits of
• BUS Topology
• STAR Topology
• RING Topology
Each node is connected to Each node connects with a Each nodes connects
a common linear link hub or switch exactly two other notes
Usually used in office Used as LAN Used where data needs to
woks be checked every time
Easy to remove one of the Also easy to remove one Node removal is not easy
nodes of the nodes
If the bus breaks the If the hub or switch is If one of the computer
whole network breaks down the network won't goes down the whole
work network breaks
Mesh Topology
• In this topology, every
node has a dedicated
point-to-point
connection to every
other node on the
network. A fully
connected mesh network
has n(n-1)/2 channels to
link „n‟devices.
• Therefore, every device
on the network must
have „n-1′ input/output
(I/O) ports.
Mesh Topology
❖ Advantages ❖ Disadvantages
• It has multiple links, so if one • It becomes very
route is blocked then other routes expensive because a
can be used for data large number of
communication. cabling and „n-1′
• Each connection can have its own input/output (I/O)
data load, so the traffic problem is ports for n devices
eliminated. are required .
• It ensures the data privacy or • It is difficult to
security, because every message install.
travels along a dedicated link.
• Its performance is not affected
with heavy load of data
transmission.
Switch
Computer Network:
A computer network, or simply a network, is a collection
of computers and other hardware components interconnected by
communication channels that allow sharing of resources and
information
• Advantages Of WAN
➢ Share information/files over a larger area
➢ Large network cover
➢ Messages can be sent very quickly to anyone else on the network
• Disadvantages Of WAN
➢ Are expensive and generally slow
➢ Need a good firewall to restrict outsiders from entering and disruptingthe
network
➢ Setting up a network can be an expensive and complicated experience. The
bigger the network the more expensive it is.
➢ Security is a real issue when many different people have the ability to use
information from other computers.
LAN vs. WAN
Characteristics LAN WAN
Geographical Area Restricted to a limited Spans a large geographic area,
geographical coverage such as such as a state, province or
a house, office or school country
Data transmission Much lower since the data Very high because the
cost transmission medium is usually transmission mediums used is
owned by the user organization leased lines or public systems
such as telephone lines,
microwaves or satellites
Physical The computers, terminals and There may not be a direct
Connection peripherals devices are usually physical connection between
physically connected with various computers.
cables.
Speed of Much higher than WAN A WAN is usually slower than
the network LAN because it has lower
bandwidth.
Data transmission Fewer data transmission error Higher than LAN
error