Beruflich Dokumente
Kultur Dokumente
Introduction - Part I
Lecture 1
1 of 45
Dr Javaid
What is a Computer?
Computer
Device capable of
Performing computations
Making logical decisions
2 of 45
Dr Javaid
What is a Computer?
Programs
Sets of instructions that process data
Guide computer through orderly sets of
actions specified by computer programmers
Computer system
Comprised of various hardware devices
3 of 45
Keyboard
Screen (monitor)
Disks
Memory
Processing Units
Dr Javaid
Computer Organization
Every computer divided into six units
1. Input unit
Receiving section of computer
Obtains data from input devices
Keyboard, mouse, disk or scanner
2. Output unit
Shipping section of computer
Puts processed info on various output devices
Monitors, paper printouts, speakers
Dr Javaid
Computer Organization
3. Central Processing Unit (CPU)
Administrative section of computer
Coordinates and supervises other sections
5 of 45
Dr Javaid
Computer Organization
5. Memory unit
Rapid access, low capacity warehouse
Temporarily retains information entered through
input unit
Retains info that has already been processed until
it can be sent to output unit
Often called memory, primary memory, or random
access memory (RAM)
Dr Javaid
Operating Systems
Managed transitions between jobs
Increased amount of work computer could
accomplish
7 of 45
Dr Javaid
8 of 45
Dr Javaid
Open-Source software ?
Source code freely distributed among programmers
Created large community
Dr Javaid
10 of 45
Dr Javaid
http://en.wikipedia.org/wiki/Comparison_of_Windows_and_Linux
11 of 45
Dr Javaid
Windows VS Linux
Windows Linux
Notes
Estimated
87.90%
1.02%
April 2009
Desktop Usage
Share
Microsoft's agreement with vendors to sell
Pre-installation Pre-installed by Pre-installed by
default on
default on very few only the Windows OS is being challenged in
almost all new new desktop PCs. court by French consumer rights groups.
desktop PCs However, Ubuntu is Such agreements by Microsoft were found
now available on all illegal in the case United States v. Microsoft.
System76
computers, some
Dell computers,
Server revenue
37.3%
13.8%
2009Q1
market share
supercomputer
1.0%
88.6%
June 2009
operating
system family
share
12 of 45
Dr Javaid
Types of Computing
Personal Computing
Pioneered by Apple and IBM
Computer prices dropped
Computers reasonable for personal or business use
Stand-alone units
People work on personal machines
SneakerNet
Transported disks to share information
Dr Javaid
Types of Computing
Distributed Computing
Work distributed over networks
N-Tier applications
n stands for number of computer used for application or
in how many parts program has been distributed.
Split parts of applications over numerous computers (3tier application )
User interface
Database
Business-logic processing
Different parts interact when application runs
14 of 45
Dr Javaid
Types of Computing
Client/Server Computing
Clients / Workstations
High-powered desktop machines
Easily share information over computer networks
Servers
Store programs and data
Information accessed by clients
15 of 45
Dr Javaid
Programming Languages
Programming Language - a set of rules, symbols, and
special words used to construct a computer program.
Hundreds exist today.
High-Level Language - A computer language that is
more understandable and closer to standard notations
than assembler language. It is more close to plain English
Low Level (Assembly Language) - A low-level
programming language in which a mnemonic is used to
represent each of the machine language instructions for a
specific computer
Machine Language - The binary representation of the
instructions that a computer's hardware can perform.
16 of 45
Dr Javaid
Programming Languages
High-Level Languages
Single statements accomplish substantial
tasks
Translated to machine language
Compilers convert to machine language
Conversion takes considerable time
Interpreters run programs without compiling
Used in development environment
Dr Javaid
Programming Languages
Low Level (Assembly Languages)
English-like abbreviations
Represent elementary operations of computer
Dr Javaid
Programming Languages
Machine Languages
Only language understood directly by
computer
Defined by computers hardware design
Machine-dependent
Languages specific to particular computers
19 of 45
Dr Javaid
Ada
Modula-2
Pascal
COBOL
FORTRAN
BASIC
Middle Level
C++
C
Lowest Level
20 of 45
Assembler
Dr Javaid
Human VS PC
Speed
Accuracy / Consistency
Intelligence
How much PC is intelligent ?
21 of 45
Dr Javaid
22 of 45
Receive information
Identify the command
Recognize the command
Find the location
Access the location
Pick up glass and fill with water
Come back and serve
Dr Javaid
Machine
Receive
Information
Identify the
command instr
Recognize the
command
Ears
Keyboard
Brain
Translate (from
AN to binary)
Brain
Decode
(decipher binary)
Follow the
instruction
Hands/legs
23 of 45
Execute the
command
Dr Javaid
24 of 45
Dr Javaid
Dr Javaid
Registers
The register set of a computer is fundamental to its
operation.
The registers available serve many functions, including
the storage of temporary data.
Some registers usually have a specialized function, while
others may be general purpose.
26 of 45
Dr Javaid
27 of 45
Dr Javaid
Buses
A collection of wires through which data is
transmitted from one part of a computer to
another. You can think of a bus as a highway on
which data travels within a computer.
Data Bus
Address Bus
Control Bus
28 of 45
Dr Javaid
Data Bus
Information (often called data) inside a computer, is
exchanged among the various components by means of
metallic conductors called data lines. A group of data
lines is called a data bus.
Each data line carries a unit of data called a bit. A bit can
be on or off. On is usually considered to be 5 volts, and
off is considered to be 0 volts.
Data Bus is bi-directional.
29 of 45
Dr Javaid
Data Bus
Data can be represented on paper as a series of ones and
zeros. A one means a bit is on, and a zero means it is off.
A byte with a value of 0 would be represented as
00000000.
Non-zero bytes can be any combination of 1s and 0s.
01100010
30 of 45
Dr Javaid
Address Bus
Data inside a computer is accessed by means of metallic
conductors called address lines. Each of them carries a bit
of information, the same as a data line. A group of address
lines is called an address bus. Just as with data, a bit can
be on or off, and addresses can be represented on paper as
a series of ones and zeros.
Address Bus is Uni-directional.
Addresses are seldom represented in binary. They are
almost always shown in HEX with the 0x prefix.
31 of 45
Dr Javaid
Control Bus
These lines do what their name suggests. The CPU can,
for example, use these lines to tell memory whether a
read or a write is required. This is done by sending
current down the appropriate control lines like, the read
and write lines.
32 of 45
Dr Javaid
Types of Memory
RAM (Random Access Memory)
Random access means that locations in the memory can be
written to or read from in any order, regardless of the
memory location that was last accessed. (Read Write)
ROM (Read Only Memory)
33 of 45
Dr Javaid
RAM
Read and Write
Integrated circuits that allow the stored data to be
accessed in any order, i.e. at random. The word
random thus refers to the fact that any piece of data
can be returned in a constant time, regardless of its
physical location.
The word RAM is mostly associated with volatile
types of memory, where the information is lost after
the power is switched off.
34 of 45
Dr Javaid
Types of RAM
SRAM (Static RAM)
Stores data in the state of a flip-flops
Each flip-flop requires at least 6 transistors so cell size is
larger
Does not need to be periodically refreshed, as SRAM uses
bistable latching circuitry to store each bit.
Volatile i.e. data is eventually lost when the memory is not
powered.
Expensive
35 of 45
Dr Javaid
Types of RAM
DRAM (Dynamic RAM)
Stores data in the capacitors
One transistor is required, cell size is smaller
Need to be periodically refreshed, because of capacitor
leakage.
Volatile i.e. data is eventually lost when the memory is not
powered.
Cheaper cost per unit
Dr Javaid
Types of RAM
NV-RAM (nonvolatile RAM)
Non-Volatile i.e. data is not lost when the memory is not
powered.
Combines the best of RAM and ROM, the read and write
ability of RAM plus non-volatility of ROM.
Internal Lithium battery as a backup energy source
Can retain contents up to Ten years
37 of 45
Dr Javaid
38 of 45
Dr Javaid
Types of Memory
RAM (Random Access Memory)
Random access means that locations in the memory can be
written to or read from in any order, regardless of the
memory location that was last accessed.
ROM (Read Only Memory)
39 of 45
Dr Javaid
ROM
ROM does not lose contents when the power is
turned off.
Non-Volatile memory
PROM, EPROM, EEPROM, Flash EPROM and
Masked ROM
40 of 45
Dr Javaid
Types of ROM
PROM (Programmable ROM)
Consists of a fuses.
Programmed by blowing the fuses.
Require Special burner to program the ROM
The PROM has to be discarded, if info burned is
wrong.
Also referred as OTP (one-time programmable)
41 of 45
Dr Javaid
Types of ROM
EPROM (Erasable Programmable ROM)
EPROM invented to allow making changes in the
contents of PROM.
Required during development of the prototype
Also referred as UV-EPROM (ultra-voilet)
Steps for programming
Take the chip out of socket for programming
Contents must be erased by placing chip in EPROM
erasure
Then place it in ROM burner for programming.
Place chip back in a socket.
Dr Javaid
Types of ROM
EEPROM (Electrically erasable Programmable ROM)
43 of 45
Dr Javaid
Types of ROM
Flash memory EPROM
Process of erasure in a second or in flash.
Erasure method is electrical flash EEPROM.
Also known as flash memory
44 of 45
Dr Javaid
Types of ROM
Mask ROM
Contents are programmed by the IC manufacturer
Not user programmable
Masked ROM is used when needed volume is high and is absolute
that contents will not be changed
Cost is significantly low but in case of error whole batch has to be
discarded
45 of 45
Dr Javaid