Documente Academic
Documente Profesional
Documente Cultură
JULY 2007
University of Technology, Mauritius La Tour Koenig, Pointe-aux-Sables Tel: (+230) 234 76 24 Fax: (+230) 234 17 47 e-mail: sobise@utm.intnet.mu
AUTHORS
School of Business Informatics and Software Engineering (SOBISE), the School of Public Sector Policy and Management (SOPSPAM) and the School of Sustainable Development Science (SSDS) of the University of Technology, Mauritius. The Head of School of SOBISE acknowledges the contribution of the following course team members:
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Mr Ashwin Tulsi Mr Vinaye Armoogum Ms Nassirah Laloo Mr Hans Seegobin Mr Ajit Gopee Mr Rishi Hans Heerasing Mr Dudley Tse Mr Nessen Ramsamy Mr Pillay Kanaksabee Mr Krishna Seeburn Mrs Sandhya Armoogum Mr Ravi Foogooa
Coordinator: Dr D. Mulliah
The Head of School of SOBISE also acknowledges the contribution of Dr C. Bokhoree, Ms B. Mahadeo, Mr J. Narsoo and Dr M. S. Sunhaloo for reviewing and proofreading this manual.
All rights reserved. No part of this work may be reproduced in any form, without written permission from the University of Technology, Mauritius, La Tour Koenig, Pointe-aux-Sables, Mauritius. ii
TABLE OF CONTENTS
Page
Authors Course Schedule Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Glossary Introduction to Computers Computer Architecture Data Storage Input/Output Devices Software Networking and Transmission Media Network Architecture The Internet HTML ICT and Society Security Information System in Organisation
iii
COURSE SCHEDULE
Week 1 2 Chapter 1 2 3 3 4 5 6 7 8 9 10 and 11 12 13 14 15 8 9 10 11 12 Topic Introduction to Computers Computer Architecture Data Storage
16 17
EXAMS Using the Online Assessment System to answer 100 Multiple Choice Questions Duration of Exams: 2 hours
iv
1.1 OVERVIEW In this chapter we study the basics of a computer system including the hardware and software associated with it. Our aim is to identify the important parts of a computer which the user interacts with to be able to perform some task. This will provide a basic understanding to all students joining first-year programmes so that they become well-versed with personal computers (PCs), and are able to properly use and apply the knowledge in later stages of their study. We shall also give a short concise history of the evolution of computers and their applications. The student is expected to refer to the recommended textbooks mentioned in section 1.8 for further reading.
1.
Students will be able to identify and describe different parts of a computer system (hardware devices for input, processing, storage, output and communications).
2.
To differentiate between the operating system in a computer system and application software.
3.
4.
Students shall be able to relate the first, second, third and fourth generations of computers
A computer can be defined as an electronic device that processes data according to a set of instructions.
The term computer is derived from the verb to compute which means to calculate. Primarily, computer was designed to perform arithmetic calculations.
Today, computers are present in almost all spheres of human activities. Besides computing figures, computers can be used for communication and the merging of computing and the telecommunication sectors has engendered a new discipline named the Information and Communication Technology, ICT.
The main advantage of using a computer is that it can solve complex problems in a very short time and is very often cost effective.
1.3.1
SYSTEM UNIT
Input Devices
CPU
Output Devices
Memory
Storage (The system unit is found inside the tower case of a desktop PC)
The system unit houses the basic electronics in the computer:Motherboard: where all electronic devices are plugged
Figure 1.6: A scanner Peripherals refer to all the other devices attached to computers that can handle input and output: input devices include keyboard, mouse, digitizer, scanner,.. output devices include monitor, printer, speakers,
A brand is a product, service, or concept that is publicly distinguished from other products, services, or concepts so that it can be easily communicated and usually marketed. Examples of brand computers are IBM, HP and Compaq. Clone computers are computers whereby the parts assembled are from different manufacturers and without a distinguishable name.
1.4 DIFFERENT PARTS OF A COMPUTER SYSTEM Generally in an Information System we can also add a fifth part called procedures. An information system is similar to a computer system but more from an information perspective. Procedures are in fact the rules or guidelines people follow when using software or hardware, and data. These procedures are documented in manuals written by computer specialists.
1.4.1
HARDWARE
Central Processing Unit The Central Processing Unit (CPU) is the essential component of a computer because it is the part that executes instructions and controls the operation of all hardware. It can be compared to the human brain in the nervous system. Powerful computers may have several processors handling different tasks, although there will need to be one central processing unit to enable the flow of instructions and data through subsidiary processors. Most Personal Computers are based on complex instruction set computing (CISC) chips that contain large instruction sets. Reduced instruction set computers (RISC) processors use smaller instruction sets. This enables them to process instructions faster than the CISC processors. RISC processors are found in Apples Power PC as well as IBM and HP, workstations, minicomputers and mainframes. Memory Memory are microchips made up of semiconductor. You may refer to chapter 2 section 2.2 and chapter 3 section 3.4 for a detailed explanation on memory.
Storage Devices There are 2 types of storage devices:1) Magnetic Storage Devices 2) Optical Storage Devices Magnetic and Optical storage devices can be further divided into 2 categories: Fixed: hard disks, Dismountable: floppy disks, CD ROM, Magnetic Tapes.
The above-mentioned storage devices are secondary storage devices that hold data even if the computer is turned off. Computers can use several different media for storing both raw data and programs. Storage media differ by the following: storage capacity speed of access permanency of storage mode of access (write, read, read only,..) cost
Disk Size
Capacity
1.44 MB
720
80 200 GB
Many e-books
CD DVD
Magnetic Storage Devices (i) (ii) (iii) (iv) (v) (vi) Diskettes (Floppy Disks) Hard disks High Capacity Diskettes (Zip Drive) Disk Cartridges Magnetic Tapes Mobile USB Disk (pen drive)
High capacity diskettes (also called zip drive) can hold data equivalent to hundreds of 1.44 MB 3 .5 inches CD.
Disks cartridges can be found in interchangeable magnetic disks whereby disks cartridges can be removed or added.
Magnetic tapes are used primarily for backup data and programs.
Mobile USB Disk or pendrive is magnetic disk medium that can be plugged in the Universal Serial Bus port of a PC. Nowadays mobile phones or digital cameras can also be used as pendrives.
Optical Storage Devices (i) (ii) (iii) (iv) (v) Compact Disk Read Only Memory CD ROM Digital Video Disk Read Only Memory - DVD ROM CD Recordable CD R CD Rewritable CD RW Photo CD 9
Fig 1.9: A CD
A CD ROM has a capacity of around 600 to 700 MB and is more widely used as a secondary movable storage than diskettes.
A CD-R is a WORM (Write Once Read Many Times) storage media different form CD-RW that can be erased several times.
DVDs are used mainly for recoding movies, with enhanced numerical audio and video quality. PhotoCD is a Kodak standard for scanning and storing images. Every image on a Kodak PhotoCD is available in five resolutions, the highest of which is 2,000 x 3,000 pixels (Pro PhotoCD contains one extra resolution: 4,000 x 6,000 pixels).
1.4.2
SOFTWARE
A software is a set of instructions that tells the computer how to perform certain tasks. A set of instructions is sometimes called a program. When a computer is using a particular program, it is said to be running or executing the program. The two most common types of software are: (i) (ii) system software and application software
Software are generally installed from diskettes or CD onto computers. Some software can also be installed via a remote computer on a network or simply via the Internet. Some software are machine dependent, that is they cannot be installed on all computers. Application software can run on a specific operating system, others are platform (name commonly used for operating system) independent, which means that they are compatible with different operating systems.
10
Operating System - OS System software exist primarily for the computer itself, to help the computer perform specific tasks. One major type of system software is the Operating System. All computers require an Operating System that tells the computer how to interact with the user and its own devices. Common OS include Microsoft Windows, Macintosh OS, IBM OS/2, UNIX, Linux. The operating system controls the input and output the flow of information to and from the CPU. Much of this is done automatically by the system but it is possible to modify and control your system if you need to. When you turn your computer on it first needs to load the operating system sometimes referred to a booting up. Basically the computer starts from scratch every time you turn the power on. It checks all its components and will usually display a message if there is a problem. Once the system is loaded the users can start the application or program that they are going to use. Most modern Operating Systems, like Windows and Macintosh OS, provide a graphical user interface (GUI). A GUI lets you control the system by using a mouse to click on graphical objects on the screen.
Application Software Application software can be described as a end-user software. Applications programs are used for all purposes other than performing operating system choices or writing other programs. Applications programs include word processors (MS Word), spreadsheets (MS Excel), graphics programs (Corel Draw), statistics packages (SPSS), database management system (MS Access), airline reservation software, etc. Ready-made application software are sometimes called software packages. For example, MS Office can be purchased by anyone and ready for use. However, there exists also tailor made software, which are not for commercial purpose, developed for specific use in organizations. In order to develop application software developers and software engineers use high level programming languages like C language or Visual Basic .Net.
11
1.4.3
DATA
Data consists of unprocessed facts including text, numbers, images, audio and video. Data is stored in files which are used by the computer. Some common types of data files are:Word Documents (MS Word 2007) Spreadsheets (MS Excel 2007) Database files (MS Access 2007) Presentation files (MS PowerPoint 2007)
1.4.4
USERS
People are end users who use the computers so as to be more productive. People are the most important part of a computer system or Information system. The views of end users are crucial when designing systems and application software. For this reason many software development companies involve users in their analysis and testing phases in the development of their systems so as to meet the demand of the end-users and therefore provide value to customers and produce quality systems. Nowadays with the advent of relatively easy Internet access and wireless technologies a user can interact with multiple computer systems with mobile devices. The user is therefore the principal actor in modern computer systems. Misuse of computers by users can sometimes cause havoc in organization. The attitude and skills of a computer user is important for proper running of an information system.
1.5 DIFFERENT TYPES OF COMPUTERS There are 4 types of computers: (i) (ii) (iii) (iv) Supercomputers Mainframes Minicomputers Microcomputers
Computers can be classified according to their processing speed and storage capacity. Different types of computers require different Operating Systems.
12
In a network of computers, the computers providing services (for example sending emails) to other computers are called Servers, which are generally more powerful than the workstations or client machines. A server is a computer that provides services to other users and is not used as an individuals computer.
1.5.1
SUPERCOMPUTERS
Examples of supercomputers are 1) Cray T90 supercomputer and 2) Blue Gene supercomputer. Supercomputers are the most powerful computers. They are useful for solving very complex scientific calculations. These machines are very big in size and storage capacity. Cray has been a synonym for supercomputer since the mid-1970s. It comes from the computer engineer and entrepreneur Seymour Cray, who designed significant parts of those eponymous computers and over 20 years, founded several companies manufacturing and selling them. Supercomputers are mainly used by government agencies, universities, and large business organizations. For example scientists use supercomputers to study the effects of global warming. Nowadays, it is possible to interconnect many Personal Computers to obtain similar processing power as supercomputers, such systems are called Clusters.
1.5.2
MAINFRAMES
Mainframe Computers are generally kept in a separate room in large organizations like banks. Example of a mainframe is the IBM AS400. Mainframe computers are specially kept in separate wired and air conditioned rooms. These computers are less powerful than supercomputers but they can support hundreds or even thousands of users, handling massive amount of inputs, outputs and storage. They are used in large organization where users need access to shared data and programs. For example, the banks use mainframes to process information for millions of customers.
1.5.3
MINICOMPUTERS
An example of a Minicomputer is the Packard Bell PB 250 Minicomputer. A minicomputer is a computer of a size intermediate between a microcomputer and a mainframe. Typically, minicomputers have been stand-alone computers (computer systems with attached terminals and other devices) sold to small and mid-size businesses for general business applications and to large enterprises for department-level operations. 13
In recent years, the minicomputer has evolved into the "mid-range server" and is part of a network. IBM's AS/400e is a good example. These machines are used for specific purposes. For example, minicomputers are found in manufacturing processes or sometimes in networking services such as the Internet servers for hosting web sites.
1.5.4
MICROCOMPUTERS
Microcomputers can be categorized into 3 types:(i) (ii) (iii) Desktop PCs Notebooks/ Laptops Handheld devices, e.g PDAs
Microcomputers are the least powerful, but most widely used and fast growing type of computer. Microcomputers are more commonly known as Personal Computers. The term PC is applied to IBM-PCs or compatible computers. Notebook or laptops are portable with the same capabilities of a desktop PC. Handheld PCs like PDAs ( Personal Digital Assistant) lack the power of a notebook or a desktop PC, but offer features for users who need limited functions and small size. The advantage of handheld devices such as the PDAs or palmtops or PDA-phone is that they combine pen input, writing recognition, personal organizational, and communications capabilities in a very small package.
1.6 BRIEF HISTORY OF COMPUTERS Some early Arithmetic Calculators are:(i) (ii) (iii) Abacus Slide Rule Pascal Calculator
The Abacus was first used by the Babylonians as an aid to compute simple arithmetic at sometime around 500 BC. The Chinese used a device to assist in performing mathematical calculation starting in about 600 BC. In 1622 William Oughtred develops the slide rule in England. In 1642 Blaise Pascal builds the first numerical calculating machine in Paris. 14
1.6.1
FIRST GENERATION
1943-1959: usually regarded as first generation computers, based on valves and wire circuits. 1946: ENIAC (Electronic Numerical Integrator and Computer), with 18,000 vacuum tubes, is dedicated at the University of Pennsylvania. It was 8 by 100 feet and weighed 80 tons. It could do 5,000 additions and 360 multiplications per second. 1951: UNIVAC I is installed at the Bureau of Census using a magnetic tape unit as a buffer memory 1952: EDVAC (Electronic Discrete Variable Computer) completed at the Institute for Advanced Study, Princeton, USA (by Von Neuman and others). First computer to use magnetic tape. 1953: Estimate that there are around 100 computers in the world
1.6.2
SECOND GENERATION
An example of a 2nd generation computer is: 1964 IBM S/360 Model 30 64K RAM, 1.33MHz.
1959 1964: Computers built between 1959 and 1964 are often regarded as second generation computers, based on transistors and printed circuits- resulting in much smaller computers. 1964: IBM announces the System/360, the first family of compatible general-purpose computers, with modular design to allow for upgrades after purchase.
1.6.3
THIRD GENERATION
The Integrated Circuit was first used in third generation computers. An Integrated Circuit-IC contains hundreds/ thousands of electronics basic elements like transistors with specific functions.
1964 1972: Computers between 1964 and 1972 are often regarded as third generation computers, they are based on the first integrated circuits. Typical of such machines was the IBM 360 series mainframe, while smaller minicomputers begin to open up computing to smaller businesses. 1965: The first supercomputer, the Control Data CD6600, was developed 1971: First microprocessor, the 4004, developed by Marcian E. Hoff for Intel was released. It contains the equivalent of 2300 transistors and was a 4 bit processor. It is capable of around 60,000 interactions per second (0.06 MIPS), running at a clock rate of 108 kHz. 15
1.6.4
FOURTH GENERATION
Some examples of 4th Generation computers are:(i) (ii) (iii) The Altair Personal Computer Apple IIe from Macintosh IBM5051 PC
1972: Computers built after this year are often called fourth generation computers, based on LSI (large scale integration) of circuits typically 500 or more component on a microchip. Later developments include VLSI (very large scale integration) of integrated circuits 5 years latertypically 10,000 components. Modern circuits contain million of components.
1974: MITS Altair 8800 designed by Ed Rodberst and Bill Yates, the first personal computer to be available commercially released by Micro Instrumentation Telemetry Systems.
1975: Microsoft is founded after Bill Gates and Paul Allen adapt and sell BASIC to MITS for the Altair PC.
1976: Apple Computer is founded and introduces the Apple II personal computer.
1981: IBM enters the personal computer market, creating a de facto standard. MS DOS from Bill Gates was the main operating system for all IBM-PC compatible computers until 1995 when Windows 1995 came into the picture.
There are different eras in computing history as follows: 70s mainframe era 80s: PC era 90s: Network era 2000s: People era
16
1.7
SUMMARY
A computer is an electronic device comprising a system unit (Motherboard, CPU, Memory, Hard disk) and peripherals (input and output devices and other components external to the case). The 4 parts of a computer system are hardware, software, data and people. From information system point of view procedures is the fifth part and people is considered to be the most important part.
All computers require an operating system, which acts as interface between the hardware and the user. Application software is different from operating system in the sense that they are general purpose and used.
There are 4 types of computers: supercomputers, mainframes, minicomputers and microcomputers. They differ from each other in terms of processing power, storage capacity, size and purpose of use.
Computers using vacuum tubes were called the first generation, transistors and diodes the second, ICs the third, and those using microprocessors the fourth. Whereas previous computer generations had focused on increasing the number of logic elements in a single CPU, the fifth generation, it has for long believed to turn to massive numbers of CPUs for added performance.
[1]
[2]
17
Unit Structure Overview Learning Objectives 2.1. The Central Processing Unit 2.1.1 The Control Unit 2.1.2 The Arithmetic and Logic Unit 2.1.3 Registers 2.2. Memory 2.2.1 Random Access Memory 2.2.2 Read Only Memory 2.3. The Machine Cycle 2.3.1 Instruction Time 2.3.2 Execution Time 2.4. The System Unit 2.4.1 System Bus Summary Suggested Readings
OVERVIEW In this chapter, you will study (i) (ii) (iii) (iv) (v) The Central Processing Unit The Control Unit and Arithmetic and Logic Unit The Memory The Machine Cycle The System Unit and the System Bus
18
LEARNING OBJECTIVES
Upon completion of this session students should be able to: (i) (ii) (iii) (iv) identify the components of the Central Processing Unit. understand the working and functions of memory. describe how program instructions are executed by the computer. describe the components of the micro-computer system unit.
The CPU is also known as the processor and is the main part of a computer system like the heart of a human being. It interprets the instructions of a program and executes them one by one. In a computer, the CPU is a single electronic component, which is also called the microprocessor chip, found inside the system unit as depicted in Fig 2.1.
19
As shown in Fig. 2.2, the CPU consists of three major units: (i) (ii) Control Unit: It controls and directs the transfer of program instructions and data between various units. Arithmetic and Logic Unit (ALU): It performs arithmetic operations like Addition (+), Subtraction (-), Multiplication (*) and Division (/), Logical operations like (AND, OR, NOT) and Relational operations like (<,>,<=,>=) are being carried out in this unit. (iii) Registers: They are special-purpose, high speed, temporary storage areas for instructions and data. They are located within the CPU itself and offer the advantage of speed.
The Control Unit contains circuitry that uses electrical signal to direct the entire computer system to carry out, or execute, store program instructions. It coordinates execution of the program instructions by communicating with the ALU and memory. It also directs and coordinates all elements of the computer. It is responsible for directing the flow of instructions and data within the CPU. The Control Unit is actually built of many other selection circuits such as decoders and multiplexors. 20
The ALU performs two types of operations: (i) (ii) Arithmetic: Addition (+), Subtraction (-), Multiplication (*) and Division (/) Logical, i.e. Comparison for the following condition: Equal-To (=), Greater-Than (>), Less-Than(<), Less-Than-Or-Equal ( ) and Greater-Than-Or-Equal ( ). Besides, comparison may be made between numbers, letters and special characters.
2.1.3 Registers
Computers have several storage locations called Registers. They are located in the CU and the ALU to make processing more efficient. They are not part of memory, but rather additional storage locations that accept, hold data and instructions temporarily during processing and transfer them at a high speed. Three registers are assigned by computers and include (i) (ii) (iii) The Instruction Register (IR), which holds instructions currently being executed The Program Counter (PC) also known as the Data Register, which holds data waiting to be processed, and results of processing The Accumulator, which collects the result of computations.
For microcomputers, the most common CPUs are built by Intel. Early models were the 8088 and 8086, intermediate models are the 80286, the 80386 and i486 and current models are the Pentium IV and Pentium D. Other types of CPUs available in the market are Celeron, AMD etc.
2.2 MEMORY Memory, also known as Primary memory, Primary storage, Main memory or Internal Storage, is the part of the computer that holds data and instructions for processing. Memory is separated to the CPU, although closely associated with it. Memory holds data temporarily. However, it has the advantage of faster access compared to the backing storage. Memory is basically of two types: (i) (ii) Read Only Memory - ROM and Random Access Memory RAM.
21
RAM requires current to retain values. Data and instructions can be read and modified. The stored data in memory are volatile and can be lost during a power failure or when the computer is switched off, for examples. It is therefore a good practice to save your work in hard disk or pen drive every 10 minutes. The physical components of memory are called the memory chips. One important feature about the memory chip is the capacity of data it can hold. Examples of memory chips which are currently used in computers are 512 MB and 1 GB RAM. A capacity of 512 MB means that the memory chip can hold 512 millions of characters of data or instructions. RAM holds the following: (i) (ii) (iii) (iv) Operating System Program currently running Data needed by the program Intermediate results waiting to be output.
The ROM chips hold programs and instructions, typically recorded at the factory, for booting the computer. Unlike the RAM, the Data and instruction of ROM chips can be read, but not modified (non-volatile). The instructions inside a ROM are generally called as the firmware. A set of chips on the Mother Board working jointly with CPU called the chipset is an example of ROM memory.
2.3 THE MACHINE CYCLE Program instructions and data are brought into memory from an external device and the processing cycle executes instructions one at a time as follows: 1. CU gets (fetches) an instruction from memory 2. CU decodes the instruction 3. CU notifies the appropriate part of hardware to take action 4. Control is transferred to the appropriate part of hardware 5. Task is performed 6. Control is returned to the CU. 22
Therefore, before an instruction can be executed, program instructions and data must be placed into memory from an input device or a secondary storage device. The CPU executes an instruction in two main steps called the Instruction Time (I-Time) and the Execution Time (ETime). The combination of I-Time and E-Time is called the Processing Cycle or The Machine Cycle, as depicted in Fig. 2.3.
CU fetches an instruction from memory and puts it into a register and then decodes the instruction and determines the memory location of the data required The actions taking place during the instruction time can be summarized as follows: (i) (ii) (iii) (iv) PC (Program Counter)=> MAR (Memory Address Register) MAR => memory => MBR (Memory Buffer Register) MBR => IR (Instruction Register) PC incremented.
The newly fetched instruction is transferred to the instruction register (IR) and unless told otherwise, the CU increments the PC to point to the next address location in memory. 23
The E-Time is carried out in two steps: (i) Execution (ii) CU moves the data from memory to registers in the ALU ALU is given control and executes the instruction Control returns to the CU
The actions within the execution time can be classified into the following four groups: (i) (ii) (iii) CPU - Memory: Data may be transferred from memory to the CPU or from the CPU to memory. CPU - I/O: Data may be transferred from an I/O module to the CPU or from the CPU to an I/O module. Data Processing: The CPU may perform some arithmetic or logic operation on data via the arithmetic-logic unit (ALU). (iv) Control: An instruction may specify that the sequence of operation may be altered. For example, the program counter (PC) may be updated with a new memory address to reflect that the next instruction fetched, should be read from this new location.
2.4 THE SYSTEM UNIT The System Unit is the case that houses the electronic components of the computer system. The main component of the system unit is the Motherboard. As shown in Fig. 2.4, the motherboard is the main circuit board consisting of mass of chips and connection that organize the computers activities. motherboard. The CPU, or the micro-processor, is the main component of the All the chips and other electronic components on the Motherboard are
24
Four types of bus can be found to convey different signals as follows: (i) (ii) (iii) (iv) Data bus Address bus Control bus Power bus.
A bus is a set of parallel electrical paths that transport electrical signals. The System Bus transport data between the CPU and Memory. The number of bits that can be carried at one time is called the Bus width, which indicates the number of electrical paths. Other buses provide external connectors, called ports to plug in peripherals such as Printers, mouse etc. The following are buses and ports that are commonly found on personal computers (i) (ii) (iii) (iv) (v) ISA Industry Standards Architecture PCI Peripheral Component Interconnect AGP Accelerated Graphics Port USB Universal Serial Bus IEEE 1394.
25
SUMMARY
(i) (ii)
The major component of the computer system is the CPU. The CPU is constituted of The Control Unit The Arithmetic and Logic Unit Registers.
Control Unit directs the entire computer system to carry out, or execute, stored program instructions. The ALU executes all arithmetic and logical operations, i.e. comparisons. Registers are special-purpose temporary storage locations, and are internal to the CPU. Memory is another storage location. Memory can be primary or secondary. The CPU follows four main steps when executing an instruction. The first two steps are the Instruction Time (I-Time). The Last two steps are the Execution Time (E-Time).
(ix) (x)
A machine cycle is a combination of I-Time and E-Time. The System Unit houses the motherboard, on which the processor is found.
SUGGESTED READINGS
[1]
L. OLeary, Computer Essentials, Annual Edition, McGraw-Hill, 1996-1997. H.L. Capron, Computers Tools for an Information Age, 4th Edition, Bunjamin /
P P
[2]
[3]
University, 2001
26
3.4
3.5
3.6
3.1
OVERVIEW
Section Outline: Data Representation Types of Primary Memory Data organization on secondary storage
3.2
LEARNING OBJECTIVES
Upon completion of this section students should be able to: list and describe the four data coding schemes explain the RAM and ROM technologies illustrate the difference between Cache Memory and Virtual Memory explain data organization on magnetic disk, magnetic tape and optical drive 27
3.3
DATA REPRESENTATION
Data representation is mainly concerned with the way data is represented within the computer. Computer uses the binary system to represent data.
3.3.1
Binary Representation
The binary system uses the base or the radix 2; which means that only 2 symbols or digits can be used to represent data. The digit can be thought of as a box to hold a number. In the binary system, this number can be either a 0 or a 1. Data is thus represented in a computer as a sequence of 0s and 1s.
0111100001110101011111111000000111100..111111100001110101011111110000
A binary digit is called a bit after the term binary digit. A bit is the smallest unit of data a computer can recognize. A collection of 8 bits forms a byte. Any English character or symbol can be represented in a byte of data (8 bits).
3.3.2
Computers can only understand binary language. The Computer Processing Unit (CPU) is a chip made up of transistors. The transistor is simply a tiny switch that can be on or off. On is equal to binary 1 and Off is equal to binary 0. The CPU consists of several million of transistors.
3.3.3
Data in the computer is represented as 0 and 1. For example, switch off is 0 and switch on is 1. Data is raw numbers and text. Information is processed data which is meaningful.
28
3.3.4 1 byte
1024 TB is one Pentabyte. 1024 PB is one Exabyte. 1024 XB is one Zetabyte (ZB), all uncompressed medical data.
3.3.5
Coding Scheme
The Text codes is an agreed upon system which allow computers and programmers to represent letters of the alphabet, punctuation marks and other symbols. Text codes allow the same combinations of (binary) numbers to represent the same individual pieces of data, which make exchange of data possible between computers Standard text (alphanumeric) code systems are as follows: BCD EBCDIC ASCII Unicode
3.3.5.1 BCD Binary Coded Decimal (BCD) provides a method for coding decimal numbers in which each digit is represented by its own binary sequence. For example: The decimal number 2345 in BCD is as follows:
0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1
29
3.3.5.2 EBCDIC Extended Binary Coded Decimal Interchange Code (EBCDIC), pronounced as ebb-se-dick, was created to extend the BCD. It was designed by IBM for early computers and is still used in IBM mainframe and midrange systems. The EBCDIC uses 8 bit code to define 256 symbols. Example of EBCDIC Scheme
The Hexadecimal notation is base 16 and uses the following symbols: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
The Octal notation is base 8 and uses the following symbols: 0,1,2,3,4,5,6,7
3.3.5.3 ASCII American Standard Code for Information Interchange (ASCII), pronounced as aeski, is by far the most common code used on computers of all types. It is a character encoding based on the English alphabet. The ASCII uses an 8 bit code and can define up to 256 characters which cover all Western European languages Example of ASCII scheme Alphabet A a ASCII 65 97 Binary 01000001 01100001
Note that the alphabet a and the alphabet A in the table above are symbols with different ASCII code 30
3.3.5.4 Unicode The Unicode is a Worldwide Character set standard, designed to allow text and symbols from all the writing systems of the world to be consistently represented and manipulated by computers. The Unicode uses a 2 byte (16 bit) coding scheme. The Unicode extends far beyond ASCII and can be used to represent 65,536 characters
Example of Unicode scheme The Euro sign is represented by 20AC16. The alphabet A represents 10 and the alphabet C represents 12 in the hexadecimal (base 16) notation which is generally used for memory addresses.
3.4
PRIMARY MEMORY
Primary Memory is basically made up of semiconductor RAM (volatile- non permanent) and ROM (non- volatile permanent). There are different RAM and ROM technologies. They are classified according to their data access (read & write) speed and storage capacity. RAM can be classified as: SRAM DRAM SDRAM DDR SRAM
31
3.4.1
RAM Technologies
3.4.1.1 SRAM Static Random Access Memory (SRAM) is a very fast, relatively expensive RAM used for onboard cache. The SRAM uses more power than other types of RAM. The word static indicates that the memory retains its contents as long as power remains applied, unlike dynamic RAM (DRAM) that needs to be periodically refreshed. However, data are lost when the circuit gets powered down, which makes SRAM a volatile memory as opposed to read-only memory and flash memory.
3.4.1.2 DRAM Dynamic RAM (DRAM) is the most common form of RAM used for main memory storage. It requires frequent refreshes, as data stored in them deteriorates over time (typically within a few milliseconds).
Asynchronous DRAM, usually just referred to as DRAM, is rated in nanoseconds (time needed to read or write one word of data) and ranged from 30-100+ ns. A higher number mean slower DRAM
3.4.1.3 SDRAM Synchronous Dynamic RAM (SDRAM) runs at the same speed as the motherboard FSB speed. It requires higher tolerances and faster architecture. Speed measured in MHz, from 66 MHz to current maximums of 400 MHz.
One difference of DRAM chips from SRAM chips is the number of address pins which is only half the required pins. Thus column address and row address are sent on separate clock cycles.
3.4.1.4 DDR SRAM DDR SDRAM or double-data-rate synchronous dynamic random access memory is a type of memory integrated circuit used in computers. It achieves greater bandwidth than ordinary SDRAM by transferring data on both the rising and falling edges of the clock signal. 32
3.4.2
ROM Technologies
Read only Memory (ROM) I used for BIOS and other applications where code or data is fixed by manufacturer and must not be overwritten during normal operations
PROM (Programmable ROM) standardized blank chips like the Programmable Logic Arrays (PLA) where data or code can be stored once, but never erased afterwards (write-once)
3.4.2.1 EPROM Erasable PROM, EPROM can be erased using a specific frequency of UV light. Usually it has a glass window above the chip to facilitate erasing.
3.4.2.2 EEPROM Electrically Erasable PROM, EEPROM can be erased using voltage higher than standard operating voltage. It must usually be removed from socket and transferred to an EEPROM programmable device.
3.4.2.3 FLASH ROM Flash ROM, is EEPROM that can be quickly erased and rewritten using standard operating voltage. It is used in smaller devices as non-volatile read-write secondary storage. EEPROM can be found in the following: MMC cards CompactFlash cards for cellphones and digital cameras Sony Memorystick PCMCIA Flash cards for laptops and handhelds USB pocket drives
33
3.4.3
Cache Memory
Caching is a method used to improve performance when transferring data to and from a fast device to a relatively slow one. A quantity of memory is installed between the CPU and RAM, for example, and frequently accessed data from RAM is temporarily stored in cache. The next time the CPU tries to access the same data, the data is retrieved from cache, instead of the relatively slower RAM. Two layers of cache are provided. The fastest cache RAM is found inside the CPU. It is called L1 cache. The next layer is the L2 cache, which are small SRAM chips on the motherboard.
3.4.4
Virtual Memory
In practice a CPU executes multiple processes concurrently. Virtual Memory (VM) provides the basis for multi process operation. VM supports the illusion that multiple programs are running concurrently. Virtual Memory is not a physical memory like the cache memory. However, the algorithm used by the virtual memory for swapping files from and to the main memory requires some space from the secondary storage, that is the hard disk.
3.5
We should differentiate between the way data is stored and organized on a storage medium and how it is being accessed. Data is organized in similar manner on magnetic disk and optical disk but differently on magnetic tapes
There are 2 methods for accessing data: Random Access Random access refers to reading and writing of data in any order.
Sequential Access Sequential access refers to reading or writing data records in sequential order, that is, one record after the other. For example, to read record 10, records 1 through 9 must be read. 34
3.5.1
Data is organized and stored in concentric circular tracks on the disk. Each track is divided into sectors. Each track has the same number of sectors and each sector stores the same number of bits. Formatting involves the creation of tracks and sectors on a disk. Formatting wipes the disk. Devices can also be classified as sequential access or random access.
3.5.2
Each bit is stored by magnetizing a small region of the tape surface. It is reliable, cheap, and provides high capacity (many GB). Access time is relatively long since the tape must be read sequentially. Magnetic tape is commonly used for backup of data files for the simple reason that past updates in master files can be easily traced.
3.5.3
Data is organized in single spiral track which is read from the centre outwards. The bit density along track is constant. The track is divided into sectors of approximately 2 KB and provides a total capacity of around 10 GB. Each bit is stored as a mark or bump on the surface, and is read using laser light. When an optical drive shines light into a pit, the light cannot be reflected back. This represents a bit value of 0 (off). A land reflects light back to its source, representing a bit value of 1 (on).
3.6
SUMMARY Data used in computers is represented using binary notation symbolizing an on state with a binary digit 1 and an off state with a binary digit 0.
To encode alphanumeric characters there are commonly 4 coding schemes BCD, EBDIC, ASCII and Unicode. There are other schemes to encode multimedia files.
Cache memory as well as virtual memory speeds up the performance of computers. Cache is physical and real whereas virtual memory makes us of a swapping algorithm and part of the hard disk to enable multitasking.
Magnetic disk is a random access device whereas a magnetic tape is a sequential access device. 35
36
4.1
OVERVIEW
A computer system requires many components to do its job: Input: Some device or method to input data so it can be processed Process: Circuits and programs in order to process the data Output: Some type of output device to give the result of its processing to the user Storage: Some mechanism for storing data Input devices enable a user to input data and commands to the computer to be processed. Output devices enable the computer to give or show you the results of its processing. Some devices, such as a modem, can perform both input and output operations This chapter will focus mainly on the various common input and output devices.
37
4.2
LEARNING OBJECTIVES This session describes the user relationships with computer input and output devices. It explains how data is input into a computer system and differentiates between the various input devices. Identify and describe the most common output devices Differentiate among the different kind of printers.
4.3
INPUT DEVICES
Input devices are used to get data into a system. It converts raw data into electronic form understandable by the receiving computer. It converts what people understand into a form that computers understand. Input Device translates instructions, voices, sounds, images and actions that people understand into symbols that the system unit can process. This is the only way a user can communicate with a computer. The input and output devices are sometimes referred as the I/O. Today, the users have a choice of hundreds of input devices, which make it easy to enter data and commands into their machines. The choice of the input devices depends on the type of document that needs to be entered into the system. The next section discusses the characteristics of the various input methods.
4.3.1 Keyboard Keyboard translates numbers, letters and special characters into machine readable format. It exists both in standard and non-standard form. The Standard Keyboard looks like a typewriter with extra keys, and it usually come with all computers. Non-Standard Keyboards are special keyboard with non standard keys. They are used in Fast Food restaurants and Supermarket. Each key represent an item rather than a character. Typing on a standard keyboard, with keys lined up in straight rows, forces you to hold your arms and wrists at unnatural angles. Evidence suggests that long hours of typing this way lead to medical problems, including repetitive-stress injuries such as tendonitis and carpal tunnel syndrome.
38
New keyboards, called concept keyboards, have been developed which make use of the latest research in ergonomics. Concept keyboard are less tiring to use and higher typing speed can be achieved.
The four sections of a typical computer keyboard are indicated in this figure.
Keyboard exists in many languages. Most of the keyboards consist of five main parts: Typewriter Keyboard which consist of all the letters and special symbols. Function keys usually found on the first row of the keyboard. These keys are used to assigned special features for specific application software. Numeric key pad usually works as a calculator. Navigation or Directional keys used to navigate the cursor on the screen. Special keys ( Email, Browser, Shutdown, etc) this comes with multimedia keyboards.
39
4.3.2 Digital Camera These are cameras which convert the captured photograph directly into a digital image and store it locally inside the camera for later download to a computer. They are a bit like a hand held video camera, except they can only take a limited number of frames. Some cameras support multiple frames. The number of pictures that can be stored depends upon the memory available within the camera and the size of each image. Digital cameras are easy to use and operate, even by novice users. At present, they tend to be expensive and have limited software support for email and faxing. Software included with the Digital Camera includes download capability between the camera and PC, and image editing software for editing the images on the PC.
4.3.3 Pointing Devices Pointing devices is a natural way to communicate with the computer. Computer users position a pointer or cursor on the screen, usually an arrow by moving the pointing device. It is used to control drawing instruments in graphics applications. It is also used to give instructions to a program, by pressing a button or combination of buttons on the device.
40
4.3.3.1 Mouse Your mouse is a pointing device that allows you to move your computers cursor or pointer around the screen to select and control program functions. In many cases it can act as a substitute for the keyboard and in some cases does things you cannot do, or cannot do efficiently with typed commands or cursor keys. The most common type of mouse has a ball on its underside that allows it to roll around on the desktop. This is classified as the Mechanical Mouse. Another type of mouse uses reflected light to detect movement and they are referred as Optical Mouse. The third type is referred as Wireless which makes use of either Radio or Infra Red waves to communicate with the system unit. These types of mouse are normally battery powered. Mice usually have one, two, or three buttons, which are used to make selections on the screen. The Microsoft Mouse has three buttons and a scroll wheel to streamline the process of scrolling through text or graphical windows. Apple mouse has no buttons but the entire surface of the mouse serves as a button. Its virtually impossible to have a computer which is not equipped with a mouse. But the mouse is impractical as a pointing device on portable computers. Portable computer manufacturers provide other alternatives to the mouse as a general-purpose pointing device.
The following techniques allow you to use the mouse to input information: Point: Place the screen pointer at a specific location. Click: Press and release the mouse button. Drag: Hold down the mouse button and move the mouse. Double-click: Press and release the mouse button twice in quick succession. Right-click: Press the right mouse button
41
4.3.3.2 Tracker Ball The tracker ball is like an upside down mouse. The ball is rotated by the user but in this case the mouse stays still. The tracker ball takes much less space and this is the reason for using it in laptop computers.
Figure 4.6: Tracker Ball 4.3.3.3 Joystick A joystick is much similar to a tracker ball. Whenever the stick is moved, the cursor moves in a similar direction on the screen. The joystick is the favourite controller for arcade-style computer games.
Figure 4.7: A Joystick 4.3.3.4 Light Pen A screen cursor can be moved by touching the screen with a light pen. The light pens are mainly used for design work and need special software to make them work. 42
4.3.3.5 Touchpad The touchpad or track-pad is a small flat panel that is sensitive to light pressure. The user moves the pointer by dragging a finger across the pad. They are commonly found on notebook computers as a substitute for a mouse.
4.3.3.6 Pointing Stick The pointing stick (often called TrackPoint, IBMs brand name for the device) is a tiny handle that sits in the centre of the keyboard responding to finger pressure by moving the pointer in the direction in which it is pushed. It works in a similar way as the Joystick and is used mostly on notebook computers.
4.3.3.7 Touch Screen A touch screen is a special kind of screen which is sensitive to touch. The touch screen responds when the user points to or touches different screen regions. Computers with touch screens are frequently used in public libraries, airports, shopping malls, banks, restaurants and bars. Touch screens are also used in many handheld computers and PDAs (Personal Digital Assistant); a stylus can be used for pointing or writing on these tiny screens.
4.3.3.8 Graphics Tablet (Digitisers) The graphic tablet is popular with artists and designers. Most touch tablets are pressure sensitive, so they can send different signals depending on how hard the user presses on the tablet with the stylus. The stylus performs the same point-and-click functions as a mouse.
4.3.4 READING TOOLS Pointing devices are inefficient for the input of large quantities of text into computers, which is why the mouse has not replaced the keyboard on the standard PC. There are other alternatives available for entering large amount of data other than the standard keyboard. Some types of devices allow computers to rapidly read marks, representing codes specifically designed for computer input.
4.3.4.1 Magnetic Stripe Reader Magnetic Stripe Readers are used to read information contained in the magnetic stripe of a credit card. Usually you can see them at the side of computerized tills, often called EPOS terminal (Electronic Point Of Sale).
4.3.4.2 Barcode Readers Barcode readers use light to read Universal Product Codes(UPC), inventory codes, and other codes created from patterns of variable-width bars. In many stores, barcode readers are attached to Point-Of-Sale (POS) terminal. These terminals send scanned information to a mainframe computer. The computer determines the items price, calculates taxes and totals, and records the transaction for future use in inventory, accounting, and other areas. Barcode readers have become very popular these days, and are now very commonly used in library systems, luggage handling systems at the airport and for warehouse stock control.
4.3.4.3 Optical Character Readers and Optical Character Recognition Optical Character Recognition (OCR) is the technology of recognizing individual characters on a printed page, so they can be stored and edited as text. This method makes use of a scanner along with a special software to turned the scanned image into standard ASCII code. In other words, the text is no longer treated as an image, since each individual letter is recognized on its own and can therefore be edited using word processing software. 44
4.3.4.4 Magnetic Ink Character Reader Magnetic-Ink character readers read those odd-shaped numbers printed with magnetic ink on cheques. The characters are printed using an ink which contains iron and may be
magnetised. The magnetic pattern of the numbers is read by a special reader called a magnetic ink character reader. Magnetic ink character recognition uses expensive equipment and is usually suitable for large scale applications.
4.3.4.5 Optical Mark Readers and Optical Mark Recognition Optical mark readers are able to sense marks made on a special form in certain places. Uses for optical mark readers include multiple choice answer sheet marking, capturing data from questionnaires and enrolment forms, and the checking of football pools coupons.
The Mark-IT 2220 Optical Mark Reader is the specifically designed for applications that require processing of data from both sides of a form in a single pass and is therefore ideal for ballot processing and medical applications, as well as for commercial data collection. The reader can scan most 11-inch forms at a rate of 1,500 to 1,800 forms per hour. The Mark-IT 2220 utilizes visible red illumination and reads black or blue marks made with a ballpoint pen or felt-tip pen as well as pencil, punched and pre-printed marks. Background printing must be in the visible red range. Infrared illumination is available as an option for pencil only marking with coloured background printing.
4.3.4.6 Punched Card Punched cards contain holes in different positions which mean something when they are read by a reader. Before screen and keyboards were widely used, punched cards were the main method of entering data into computers. They are seldom used now but two uses still remain: the Kimball tag and the clock card which is used to record the hours a person works so that wages can be calculated.
4.3.4.7 Kimball tag Kimball tags are the small cards with holes punched in them that you see attached to clothing in certain shops. When you buy the goods, one of the tag is removed and sent for processing to a computer. A card reader there reads the information contained in the holes such as stock number, size, colour, etc.
4.3.4.8 Personal Digital Assistants (PDA) PDAs are pen computers that serve as pocket-sized organisers, notebooks, appointment books, and communication devices. These popular, versatile devices can also be programmed for specialized work ranging from sports scorekeeping to medical analysis.
46
4.3.4.9 Smart Whiteboard A smart whiteboard can serve as an input device for a PC, so each board full of information is stored as a digital image on the computers disk. If the writing is clear enough, handwriting recognition software can turn the whiteboard notes into a text file that can be emailed to meeting or class participants.
4.3.4.10 Scanners
A scanner is an input device that can create a digital representation of a printed image. The most common models today are flatbed scanners, which look and work like a photocopy machines, except that they create computer files instead of paper copies. Inexpensive flatbed scanners are designed for home and small business use. More expensive models used by graphics professionals are capable of producing higher quality reproductions. Some scanners called slide scanners can scan only slides and negatives. These specialized tolls generally produce higher quality results than flatbed scanners when scanning transparencies. Drum scanners are larger and more expensive than flatbeds; they are used in publishing applications where image quality is critical. Regardless of its type or capabilities, however, a scanner converts photographs, drawing, charts and other printed information into bit pattern that can be stored and manipulated in a computers memory, usually using graphic software.
47
4.3.4.11 Electronic Point Of Sale (EPOS) terminal Electronic Point of Sale (EPOS) terminals is used in retail or wholesale organisation such as supermarket to record customer transactions. They are rapidly replacing the simple cash register as they can do everything a cash register does plus many other things.
4.3.4.12 Voice Recognition Devices These input devices are used to speak directly to a computer to issue commands and enter text. The input is usually via a microphone. Voice recognition technology enables people with disabilities to control computerized devices with spoken commands. The problem with this technology is that it is speaker-dependent and requires voice training before you can use it.
48
4.4
OUTPUT DEVICES
Output devices convert the computers internal bit patterns into a form that the human can understand. In many cases this will be in the form of a hard copy (printout) or soft copy (screen or visual output).
4.4.1 Visual Display Unit (VDU) The monitor or VDU, serves as a one way window between the computer user and the machine. They are ideal for showing the results from an enquiry where no printout is needed. Todays monitors are used to display not only text and numbers but also graphic, photographic images, animation and video. VDUs come in many sizes and resolution. Monitor size, like television size, is measured as the length of a diagonal line across the screen; a typical desktop monitor today measures from 15 to 21 inches diagonally but the actual viewable area is usually smaller. Usually the standard sizes are 15, 17, 19 and 21 inches. Images on a monitor are composed of tiny dots, called pixels. A square inch of an image on a monitor is typically a grid of dots about 72 pixels on each side. Such a monitor has a resolution of 72 dots per inch (dpi). The higher the resolution, the closer together the dots and the clearer the image. Another way to describe resolution is to refer to the total number of pixels displayed on the screen. Two monitors of same size, say 15 inches, does not necessarily have the same resolution. The one that places the dots closest together displays more pixels and therefore create a clearer and sharper image. Another way of describing resolution is by defining the number of column and rows of pixels rather than total number of pixels. For example, a 1,280 x 768 image is composed of 1,280 column and 768 rows of pixel for a total of 983,040 pixels. For PCs these resolutions have names for example VGA is 640 x 480. This means that there are 640 pixels in each row across the screen and 480 pixels in each column up and down the screen.
49
SVGA is usually 800 x 600. Displays with lots of pixels are called high resolution. Displays with fewer pixels are called low resolution. High resolution displays can show much more detail than low resolution ones and are required for applications such as Computer Aided Design (CAD) and Multimedia. Here are close-up pictures of a circle, one shown on a high resolution display and one on a low resolution display:
Images displayed on the screen are temporary, i.e. they do not last forever. For this reason they are called soft copy. The image quality is not only determined by the resolution. Computer monitors are limited by colour depth the number of different colour they can display at the same time. Colour depth is sometime called bit depth, because a wider range of colour per pixel takes up more bits of space in video memory. Most graphic professionals use 24 bit colour, or true colour, because it allows more than 16 millions colour choices per pixel.
4.4.1.1 CRT Most monitors use a Cathode Ray Tube (CRT) for the display. This is the same type of display as used in television and these make monitors quite large. Because of their clarity, speedy response time, and low cost, CRTs still dominate desktop.
50
4.4.1.2 LCD Modern laptop computers use a Liquid Crystal Display (LCD) similar to those used in calculators and electronic watches. The screen contains a layer of liquid crystal cells. Varying electrical charges are applied to some of the cells to produce the image. Lighter, more compact LCDs are used primarily in portable computers. But overhead projection panels and video projectors also use them to project computer screen images for presentation. As LCDs prices are going down, they are getting more and more popular with PCs and expert believe that LCD will one day replace all the CRT monitors in the future.
4.4.2 Printers Printers are the primary output devices used to prepare permanent document for human use. Printers are classified by how they print and how fast they operate. There are two basic types of printers, depending how they make marks on the paper. Impact printers are based on the same idea as the typewriter; some kind of mechanical device hits a ribbon and transfer ink to the paper, making up the outline of the character. Non-impact printers form an image without hitting the paper.
4.4.2.1 Dot Matrix Printers In a dot matrix printer, an arrangement of tiny hammers in a print head strikes a ribbon to produce the desired characters. Each hammer prints a small dot on the paper. The print head is moved across the width of the paper as the hammers produce the dots so the letters are formed by a combination of dots. Dot matrix printers are cheap, but their print quality is 51
relatively poor. The main use of dot matrix printers is with multipart business forms such as orders and invoices. These forms require impact to produce an image on each sheet.
4.4.2.2 Line Printers Line printers use impact methods to produce an entire line of output at a time, in contrast to dot matrix printers which produce one character at a time. These printers are mainly used on large mainframe system and are likely to be phased out within a few years in favour of more modern technology. Line printers have the advantage of being relatively fast up to 3000 lines per minute and capable of handling multipart paper.
4.4.2.3 Laser Printers Laser printers are non-impact devices that uses laser light to produce the dots needed to form a page of characters or graphics at a time. Laser printers can print four to thirty pages per minute of high quality text and graphical output. Because of their speed, durability and reliability, they are often shared in office environments. Laser printers use the same technology as photocopy machines. A laser beam creates patterns of electrical charges on a rotating drum; those charged pattern attract black toner and transfer it to paper as the drum rotates. Colour laser printers can print multicolour images by mixing different toner shades.
52
4.4.2.4 Ink Jet Printers Inkjet printers spray ink directly onto paper to produce printed text and graphic images. Inkjet generally print fewer pages per minute than laser printers, and many are less expensive than the black-and-white laser printers. Inkjet printers are also smaller and lighter than laser printers. Today we do have portable inkjet printers which have been designed to travel with laptops and weigh only a couple of pounds each. Some inkjet printers, called photo printers, are specially designed to print high quality graphic photo captured by digital cameras and scanners.
Although inkjet printers are less expensive than laser printers, however they are quite expensive to run, because the ink cartridges are expensive and frequently need replacement.
Multifunction peripherals (MFP, also called all-in-one devices) take advantage of the fact that different tools can use similar technologies. A multifunction device can combine a scanner, a printer and a fax modem. Such a device can be used as a printer, a scanner, a colour photocopy machine and a fax machine. These devices are also classified as inkjet printers with multi-functionalities.
53
4.4.2.5 Thermal Printers Thermal printers are generally used in low cost printers and fax machines.
the print head contains high temperature heat elements arranged in a matrix when the print head is pressed againt the paper, the heat elements burn small holes
degrees C
Printing is generally slow the fumes generated are unpleasant a messy residue is left over by the heating process and can clog up the printer
mechanism
print quality is poor and fades with time special paper is required
Some types use a silvery grey paper, which is an aluminium surface coating. When the print head burns away this layer, it exposes a dyed layer underneath. One application for thermal printers is the production of bar codes. The diagram below illustrates a bar code thermal printer.
54
4.4.2.6 Graphic Plotters For certain scientific and engineering applications, a plotter is more appropriate than a printer for producing hard copy. A plotter is an automated drawing tool that can produce large, finely scale drawing, engineering blueprints and maps by moving the pen and/or the paper in response to computer commands. There are two types of graph plotter, that is, the drum plotter and the flat bed plotter. When a drum device is used, the paper is placed over a drum that rotates back and forth. A carriage holding one or more pens is mounted horizontally across the drum. The carriage and drum movements act together under computer control to produce an image. When several pens are mounted on the carriage, each pen can be filled with a different ink colour. Since each pen is program selectable, the plotter has the ability to produce colour drawings. With a flat bed, the paper does not move and the pen holding mechanism must move in two axes rather than one. This is an expensive option for large paper sizes and these are quite rare. Inkjet plotters are able to produce large drawings containing many colours. The pens of a drum plotter are replaced by an inkjet head, but otherwise the principles are the same. The advantage of an inkjet plotter over a pen plotter is that they can produce filled areas with a wide variation of colour and density, something which is impossible in a pen plotter.
Figure 4.23: Flatbed Plotter and Drum Plotter Plotters can automatically change their pens and so can produce colour output. The lines drawn by a plotter are continuous and very accurate. Plotters are very slow but produce high quality output. They are usually used for Computer Aided Design (CAD) and Computer Aided Manufacturing (CAM) applications such as printing out plans for houses or car parts. The quality of the output produced by ink jet printers is now very good and large format (big) ink-jet printers are steadily replacing plotters for most tasks. 55
4.4.3 Voice Output Sound can be output through loudspeakers or headphones. On PCs you also need to install a sound card to be able to output sound. If you want you can connect the computer to a hi-fi to get louder, better quality sound than you would if you plugged the loudspeakers straight into the computer. The sound produced by PCs is now better quality than sound that is recorded on a CD. Sometimes a computer can read out text that has been entered into it by using a computerised or recorded voice. This type of system is known as speech synthesis.
4.5
SUMMARY Input and output (I/O) devices are essential components of the computer system. I/O devices enable the computer to communicate with the external world. Input devices enable a user to input data and instructions to a computer. Example of input devices are Keyboard, mouse, tracking ball, touch screen, touch pad, light pen, digitizing tablets, Scanner, Bar code reader, MICR, OCR, OMR Output devices enable a user to receive information from the computer. Example of output devices are monitor, printer, plotter, speakers. Some I/O devices are used in any typical office environment, for example keyboard, screen, mouse, printer etc. Other I/O devices has specific use, and are therefore used in specific environments, such as industry, home, laboratories etc. e.g. voice-input devices, joysticks, plotter etc.
56
4.6
SUGGESTED READINGS
[1]
http://dragon.ep.usm.edu/~it365/module/Basics/system.htm
[2]
http://dragon.ep.usm.edu/~it365/module/Basics/Basics.htm
[3]
http://www.tiscali.co.uk/reference/encyclopaedia/
[4]
http://www.chatsworthdata.com/
[5]
Computer Confluence George Beekman, Eugene J. Rathswohl 5th Edition Prentice Hall
[6]
Information Systems for you Stephen Doyle 3rd Edition Nelson Thornes Publisher Ltd
57
CHAPTER 5: SOFTWARE
Unit Structure 5.1 Overview 5.2 Learning Objectives 5.3. System Software & Application Software 5.3.1 Hardware and software 5.3.2 Types of Software 5.3.2.1 Operating System 5.3.3 Open Source Software 5.4. Different kinds of Operating Systems 5.4.1 Supercomputers 5.4.2 Mainframes 5.4.3 Servers 5.4.4 Desktop Computers 5.4.5 Workstations 5.4.6 Handheld Computers 5.4.7 Embedded Systems 5.5. Multitasking Operating System 5.5.1 Multitasking 5.5.1.1 Preemptive Multitasking 5.5.1.2 Cooperative Multitasking 5.6. Booting up 5.7. Operating Systems functions 5.7.1 Process Management 5.7.2 Memory Management 5.7.3 Secondary Storage Management 5.7.4 I/O & File Management 5.8 Application software 5.8.1 Productivity software 5.8.2 Education software 5.8.3 Entertainment software 5.8.4 Web based software 5.9 Summary 5.10 Suggested Readings
58
5.1
OVERVIEW
System Software & Application Software Different kinds of operating systems Booting up Operating systems functions Different kinds of application software
5.2
LEARNING OBJECTIVES
distinguish between system software and application software group operating systems according to their functionalities define a multitasking operating system explain the process when a computer boots up describe Operating Systems functions elaborate briefly on Process Management explain the process of Memory Management explain the process of Secondary Storage Management describe what is I/O (Input Output) & File Management list and give examples of different kinds of application software list and give examples of Productivity software list and give examples of Education software list and give examples of Entertainment software list and give examples of Web based software
59
5.3
5.3.1
The terms hardware and software are frequently mentioned in connection with computers. Hardware is the jargon term given to the machinery itself and to the various individual pieces of equipment. It refers to the physical devices of a computer system. It is important to note that a computer cannot do anything on its own. It has to be instructed to do a desired job. It is necessary to specify a sequence of instructions such that a computer solves a particular problem. Such a sequence of instructions written in some programming language is called a computer program.
HARDWARE SYSTEM SOFTWARE APPLICATION SOFTWARE USER Figure 5.1: Relationship between hardware, software and the user
Let us take an analogy of a cassette player and the cassettes purchased on the market. On its own neither the cassette player nor the cassette can play songs. The songs themselves are like the software on the hardware. So to listen to a song first of all it has to be recorded on the cassette and then played on the cassette player. Similarly the software has to be written down using a programming language and executed by the hardware. 60
5.3.2 a) b)
Communications Databases
Games
Utilities Assembler
Application Software
Debuggers Compilers File mgt Tools Operating Systems
HARDWARE
Figure 5.2: Hardware level, System software level and Application software level
a)
System Software
System software also known as system package is the software that manages internal resources in a computer system. It is designed to control the operation of a computer system. The most important system software is called the operating system.
b)
Application Software
Application software also known as application package is a set of one or more programs designed to carry out operations for a specified application. There are several categories of application software as will be discussed later.
61
5.3.2.1 Operating System An operating system is computer program that manages the hardware. It acts as an interface between the user and the computer hardware. In order to work on a computer the operating system should be loaded first, and then the application software can operate.
Application
Disk Drive
Keyboard Monitor
Operating Systems
Mouse
Printer
5.3.3
This is yet another group of software which includes both system software and application software. Open source software is software that comes along with its source. This means that users may read it, make changes to it, and build new versions of the software incorporating their changes. It allows users with programming experience to revise and change the programming code to suit their individual needs. The modification made from its original design is totally free of charge, hence the term open.
62
5.4
Supercomputers Mainframes Servers ( Ex: MS Windows 2003 Server) Desktop computers (Ex: MS Windows XP, VistaHome) Workstations (Ex: MS Workstation NT 4.0 ) Handheld computers (Ex: Symbian OS on Mobile) Embedded computers (Ex: Embedded Linux)
5.4.1 Supercomputer A supercomputer is a computer that is very powerful in terms of capacity but more importantly in terms of speed of computation. It was first introduced in the 1960s by Seymour Cray at Control Data Corporation (CDC). The speed of a supercomputer is generally measured in "FLOPS" (FLoating Point Operations Per Second) or TFLOPS (1012 FLOPS); Nowadays on average their speeds are somewhere around 100 TFLOPS. So the operating system should be able to cope wit such capacity and speed.
5.4.2
Mainframes
Mainframes are large and expensive computers. They are used for bulk data processing such as censuses, industry/consumer statistics, ERP, and bank transaction processing They are meant mainly for government institutions and large companies. The speed of mainframes is measured in millions of instructions per second (MIPS). Nowadays the smallest System, z9 IBM mainframes, run at about 26 MIPS and the largest one about a speed of 17,801 MIPS.
5.4.3
Servers
Basically Servers are just computers that can share resources like applications, files, printer etc. with other computers on a network. For example, a Web server will send resources (Web pages, images, sounds, etc.) in response to requests from a Web browser (e.g. Netscape Navigator).
63
5.4.4 Desktop computers The term desktop computers or personal computer or PC is generally a microcomputer intended to be used by one person at a time and suitable for general purpose tasks such as word processing, programming, spreadsheet, presentation etc.., usually used to run purchased or other software not written by the user. Unlike minicomputers, a personal computer is often owned by the person using it, indicating a low cost of purchase and simplicity of operation. Since it is a single user system usually the operating system can easily manage all the operations and processes involved.
5.4.5 Workstations Workstations are Micro or minicomputers (also known as nodes) on a computer network and which can be used to perform a number of tasks by using their own resources as well as well as other devices which are shared on a network. They are high-end general-purpose microcomputers designed to be used by one person at a time and which offers higher performance than normally found in a personal computer, especially with respect to graphics, processing power and the ability to carry out several tasks at the same time. So the Operating System should be able to cater for the networking aspect of the system.
5.4.6 Handheld Computers Handheld computers are portable computers. They are small in size to be held in ones hand. Nowadays its cost is getting lower and lower. Although extremely convenient to carry, handheld computers have not replaced notebook computers because of their small keyboards and screens. The most popular hand-held computers are those that are specifically designed to provide PIM (personal information manager) functions, such as a calendar and address book. Though small they are powerful enough for large-scale scientific and engineering applications, they provide a high level of performance, they are typically based upon a RISC (Reduced Instruction Set Computer) architecture and providing both very high speed calculations and high-resolution color displays.
64
5.4.7 Embedded Systems An embedded system is a special-purpose computer system designed to perform a dedicated function. Unlike a general-purpose computer, such as a personal computer, an embedded system performs one or a few pre-defined tasks, usually with very specific requirements, and often includes task-specific hardware and mechanical parts not usually found in a general-purpose computer. Since the system is dedicated to specific tasks, design engineers can optimize it, reducing the size and cost of the product. Embedded systems are often mass-produced, benefiting from economies of scale. Examples of Embedded systems include smaller protable systems like digital watches, MP3 Players, and larger ones like traffic lights nuclear power plants, oven, washing machines, factory controllers etc
5.5
5.5.1
Multitasking
Multitasking can be defined as the ability to execute more than one task at the same time. The terms multitasking and multiprocessing are often used interchangeably, although
multiprocessing implies that more than one CPU is involved. In multitasking, only one CPU is involved, but it switches from one program to another so quickly that it gives the appearance of executing all of the programs at the same time. All modern operating systems are multitasking. Older operating systems like MS DOS (Microsoft Disk Operating Systems) is not a multitasking operating system as it executes one command at a time. There are two basic types of multitasking: preemptive and cooperative.
5.5.1.1 Preemptive Multitasking In preemptive multitasking, the operating system allocates CPU time slices to each program. In this situation a computer operating system uses some criteria to decide on how long to allocate to any one task before giving another task a turn to use the operating system. The act of taking control of the operating system from one task and giving it to another task is called preempting. 65
5.5.1.2 Cooperative Multitasking In cooperative multitasking, each program can control the CPU for as long as it needs it. If a program is not using the CPU, however, it can allow another program to use it temporarily. It is called cooperative because all programs must cooperate for it to work. If one program does not cooperate, it can block the CPU. In contrast, preemptive multitasking forces applications to share the CPU whether they want to or not. Most modern OS Systems like OS/2, Windows 95, Windows NT and UNIX use preemptive multitasking. An example of an operating system which uses cooperative multitasking was the Microsoft Windows 3.x which is not used frequently these days.
5.6
BOOTING UP
Whenever a computer is switched on there is a small program called a Bootstrap loader which resides in the ROM locate and execute the Kernel (core) of the operating system residing in the RAM and other initialization files of the operating system found on the hard disk. First the operating system will perform a Power On Self Test (POST), verifying the status of all the hardware devices and finally load a Graphical User Interface (GUI) for the user to interact with the computer. When a computer performs the POST, any missing or faulty device is signaled via beep sounds or text message on the screen. For example if the RAM is not well plugged in its bank there is a continuous beep sound or if the hard disk is damaged or corrupt, a command line requesting for the system disk is displayed.
5.7
The operating system performs many tasks from the start of the computer till the switch off of the computer. One of the functions of an OS is to schedule priorities for tasks to be executed. The main functions of an operating system are: Process management Memory management Secondary Storage management Device management 66
5.7.1
PROCESS MANAGEMENT
A process is part of a program in execution. A process needs certain resources, including CPU time, memory, files, and I/O devices, to accomplish its task. A process has different states, therefore has a lifecycle from start to end. Using Task Manager (ctrl+alt+del) in MS Windows operating system one can view and terminate a process.
The operating system is responsible for the following activities in connection with process management: Process creation and deletion, Process suspension and resumption, Provision of mechanisms for, process synchronization and process communication 67
5.7.2
MEMORY MANAGEMENT
The operating system is responsible for the following activities in connections with memory management: Keep track of which parts of memory are currently being used and by whom, decide which processes to load when memory space becomes available, allocate and deallocate memory space as needed. Memory is a large array of words or bytes, each with its own address. It is a repository of quickly accessible data shared by the CPU and I/O devices. Main memory is a volatile storage device. It loses its contents in the case of system failure
5.7.3
The operating system is responsible for the following activities in connection with disk management: Free space management, Storage allocation and Disk scheduling. Since main memory (primary storage) is volatile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory. Most modern computer systems use disks as the principle on-line storage medium, for both programs and data.
5.7.4 DEVICE MANAGEMENT The I/O system management consists of: a buffer-caching system, general device-driver interface and Drivers for specific hardware devices. A file is a collection of related information defined by its creator. Commonly, files represent programs (both source and object forms) and data. The operating system is responsible for the following activities in connections with file management: File creation and deletion, directory creation and deletion, Support of primitives for manipulating files and directories, Mapping files onto secondary storage, File backup on stable (nonvolatile) storage media. 68
5.8
APPLICATION SOFTWARE
An application software is a software that performs useful work on general purpose problems. Application software can be grouped into four categories:
Application software as well as system software are written (coded) with high level programming languages like C, C++, VB.Net . Application software are available as ready made by software development companies on the market or tailor made(customized) by organizations in order to meet their specific requirements. Tailor made software are more flexible for the users more focus on the organization needs whereas ready made software are often cheaper with less flexibility and security.
5.8.1
PRODUCTIVITY SOFTWARE
Productivity software are mostly used in the industry to enhance day to day activities in all business units of an organization which could be:
Administration Production Manufacturing Sales & Marketing Accounting Computer Aided Design tools (CAD)
MS Word for word processing MS Excel for solving problems in tabular forms like budgeting, time tabling... MS Access for database management MS PowerPoint for presentation 69
5.8.2
EDUCATION SOFTWARE
Education software makes use of a variety of software technologies to map pedagogical approaches using the computer. Educational software also provides educational content and assistance on an E-learning mode. Some examples are: 1. 2. 3. Computer Based Tutorials e-learning web sites e-books
5.8.3
ENTERTAINMENT SOFTWARE
Entertainment software make use of multimedia that is text, graphics, video, audio, animated pictures... These software can be developed using high level programming language, however there are dedicated packages specialized in entertainment software like Macromedia products: Flash, Dreamweaver, Director
Here follows some examples: 1. 2. 3. 4. Games like Solitaire, Pinball, and Hearts Movie Maker Div Player Media Player
70
5.8.4
The internet provides a variety of applications through the Internet browser but also today on wireless devices trough Wireless Application Protocol (WAP) enabling users to browse and execute processes on handheld devices. The web based development is also adopted for Intranet, an internal network application whereby organisations share information and execute business processes. Some examples are: 1. 2. 3. 4. 5. Browsers like Internet explorer, Netscape, Mozilla FireFox Intranet applications Email software e.g. Outlook Express Information System applications WAP browser for hand held computers
5.9
SUMMARY
System software manages computer hardware whereas application software is used to solve general purpose problems.
A multitasking OS supports many tasks to be executed simultaneously. There exist preemptive and cooperative multitasking.
When a computer boots it initializes and loads the necessary files and environment for the user to operate.
OS can be classified according to their functionalities. Amongst the many tasks of an operating system there are process management, memory management, storage management, I/O and file management.
Application software can be divided into different categories which are: productivity software, education software, and entertainment software and web based software.
71
5.10
SUGGESTED READINGS
[1]
[2]
72
6.5 6.6
6.7
6.1
OVERVIEW
Previous to the 1970s, the idea of a computer networking did not exist, except in a few laboratories or research environments. Organizations had few computers, and those were usually isolated in huge computer rooms with heat and air circulation requirements. There was no need to network three mainframe computers in the same room. One simply carried the data in the form of computer tapes from machine to machine. With the advent of distributed networks such as the Internet and the fact that personal computer systems are now relatively powerful and affordable, networking needs have risen exponentially during the last 20 years. This chapter will illustrate the main concepts behind computer networking, transmission media used in networks and data communication between network hosts. 73
6.2
LEARNING OBJECTIVES To understand the different types of computer networks, their components, their topologies and their protocols. To appreciate the need for different type of transmission media used in computer networks. To explain the basis of data transmission, including types of signals, modulation, and transmission modes To appreciate the need for reliable data transfer and how this is usually achieved.
6.3
DATA COMMUNICATION
Data communication is the process of transferring data from one source system (transmitting entity) to another destination system (receiving entity) via a communication channel. The transmitting and receiving entities are called nodes or hosts. The communication channel can make use of guided or radiated media. Several communication impairments occur at different levels during data communication. The most common impairment is noise. Claude Shannon, an electrical engineer and mathematician proposed a communication model depicted below (Fig. 6.1):
DATA
internal noise
ENCODER
external noise
Destination System
TRANSMITTER
communication channel
RECEIVER
Source System
DECODER
internal noise
DATA
74
6.4
COMPUTER NETWORKS
A computer network is created by interconnecting two or more computers for the purpose of communicating and sharing resources.
Computer networks can be classified into three main categories: Personal Area Network (PAN) Local Area Network (LAN) Wide Area Network (WAN)
A computer network is usually defined by: The transmission medium used by the network The communication protocol used on the network The topology of the network Whether it is a public or private network
6.4.1
A Personal Area Network is the smallest computer network, usually spanning less than 10 meters in radius. It usually consists mainly of computing devices such as cellular phones, personal digital assistants (PDAs), digital cameras and similar devices (see Figure 6.2). These personal devices use computer buses such as USB and FireWire or wireless technologies such as IrDA and Bluetooth to communicate among themselves, or for connecting to a higher-level network.
Figure 6.2
75
6.4.2
A Local Area Network is a network covering a relatively small area. Most LANs are confined to a single building or group of buildings. Computer systems connected in a LAN are able to access data and devices anywhere on the LAN. This means that users can share expensive resources, such as printers, as well as data (See Figure 6.3). Users can also use the LAN to communicate with each other, by sending email or engaging in chat sessions. There are different LAN technologies currently available, with Ethernet being the most popular. A LAN is generally characterized by having a high capacity and a low latency.
Figure 6.3
6.4.3
A Wide Area Network is a network that spans relatively a large geographical area. The best example of a WAN is the Internet. Computers connected to a wide area network often interconnect through public networks, such as the telephone system. They can also be connected through leased lines or via satellites (See Figure 6.4). A WAN consists of a heterogeneous mixture of hardware and software systems. A WAN typically uses communication services provided by common carriers. These services fall into two categories: switched and dedicated.
Figure 6.4