Computer Hardware and Software

Computer Fundamentals

Computer Hardware Components

  1. The Processor
  2. Input Devices
  3. Output Devices
  4. Secondary Storage

See Figure 1.

How is Information represented in a Computer?

It uses the Binary Number System

The Processor

  1. The Central Processing Unit (CPU)

    Is the heart of the computer. (The cost of CPU may range anywhere between $10 and $1,000,000.)

    1. Arithmetic and Logic Unit (ALU) ALU contains circuitry necessary to perform arithmetic and logical operations.

      • arithmetic operations - addition, subtraction, multiplication, and division
      • logical operations - greater than, less than, equal to, not equal to, etc. The logical operations include comparison of two quantities of data. They also include the test and branch operations; the computer takes a different course of action based on the result of the logical operation.
    2. Control Unit

      - directs the flow of operations and maintains order in the computer.

      - coordinates the flow of data in and out of ALU, primary storage, secondary storage and various I/O devices.

    3. Registers

      - high-speed storage areas used to temporarily hold small units of program instructions and data

      - to temporarily store specific types of data (the current program instruction, the address of the next instruction, current data, etc.)

      - There are general purpose registers, which are available to applications programmers and special- purpose registers such as the instruction counter and instruction register.

      - The size of a register and the number of registers on a computer varies from one to another. Typically, the word size used on a given computer matches the register size. Common word sizes include: 8, 16, and 32 bits.

  2. Primary Memory(Main Memory)

    Main memory holds instructions of the program(s) that are currently being executed and the related data. It is made up of on - off type of devices (representing a bit). A group of bits, typically 8 is referred to as byte and a collection of bytes is referred to as word.

    Memory size is measured in terms of kilobytes (K) (1024 bytes), megabytes (MB), or gigabytes (G).

    Each memory cell has an address.

How is a computer program executed?

Input devices

Output devices

Secondary Storage

Why?

The most commonly used secondary storage devices are: magnetic disks and magnetic tapes.

Computer Categories

Computers are classified according to characteristics, cost and purpose.

Characteristics Micro Workstation Mini Mainframe super
Processor speed 4MIPS 8MIPS 31MIPS 102MIPS 2.7Gflops
Main Memory(MB) 1-16 16-64 128-192 128-2048 over 256
Price 2-12K 5-20K over 700K over 13M 5M-20M

Microcomputers

Microcomputers are built around a microprocessor. The microprocessors manufactured by Intel Corporation have become the standard CPU's around which IBM and its compatible microcomputers are built.

Evolution of Microprocessors:

Please see Table 1.

Hardware Multitasking: Allows the computer to work on more than one program at a time. For example, if you need to move data from a spreadsheet to a word processor, the multitasking capability allows you to move back and forth between the applications without completely backing out of either program.

Math Coprocessor: For heavy duty mathematical calculations such as CAD operations, large spreadsheet, math or database calculations, a math coprocessor chip is added to the system board. 486 has a built-in math coprocessor.

Cache Controller: Cache memory is a special high -speed memory used to enable quick and easy access. Data and instructions are transferred from the main memory prior to their use by the processor. Cache controller directs the cache memory.

Software

Consists of computer programs that control the operations of the computer system

Operating Systems

An OS is a master control program which is loaded into a computer's memory. Its purpose is two-fold:

Some of the services offered by an OS include:

Multiprogramming

An extreme speed disparity between the CPU and its I/O devices. Since the CPU cannot process data that it does not have yet, processing must wait for the completion of an input operation. In addition, in order to avoid possible errors, the CPU waits for the completion of an output operation. Thus, the CPU might process instructions for few microseconds, wait for hundred microseconds as an I/O operation takes place.

Multiprogramming (or multitasking) is a technique for having a number of programs placed in memory and the CPU switches its attention from one program to another, taking advantage of the time that it would otherwise spend waiting for I/O. Although we may have more than one program in main memory, the CPU works only on one program at a time.

Some of the popular OSs are:

OS-MVS
(OS-multiple virtual storage) Developed by IBM for its 370 series machines. Handles multiprogramming in a virtual memory environment.

Virtual memory is where the program to be executed is divided into segments (pages). Pages are brought into memory as needs arise. Thus, only part of (not the whole) the program executing reside in the main memory. this results in having the CPU process more programs concurrently.

MS-DOS
(Micro soft-disk OS). Developed for use on microcomputers. Supports one user at a time.
Unix
Developed at Bell Labs in 1969. It is designed to handle multiusers and multitasking. It is portable, i. e. can be moved from one machine to another.
OS/2
Developed by IBM and Microsoft. It is a multitasking system. Requires a larger memory as compared to MS-DOS.

Language Translators

A translator converts a statement from a high level programming language into machine language.

Translators are of two types:

Utility programs

Programs used to merge and sort files, keep track of computer jobs being run, keep track of number of users and resource utilization etc.

About this document ...

This document was generated using the LaTeX2HTML translator Version 96.1 (Feb 5, 1996) Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.

The command line arguments were:
latex2html -split 0 -html_version 3.0 hwsw.tex.

The translation was initiated by Vijay & on Mon Jan 19 17:28:26 EST 1998


Vijay &
Mon Jan 19 17:28:26 EST 1998