chapter 2 - ewu · how hardware and software ... fifth edition 6 common operating systems zdos ......

48
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 2 How Hardware and Software Work Together

Upload: trannhi

Post on 11-May-2018

222 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

A+ Guide to Managing and Maintaining Your PCFifth Edition

Chapter 2

How Hardware and Software Work Together

Page 2: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

2A+ Guide to Managing and Maintaining Your PC, Fifth Edition

You Will Learn…

About operating systems, what they are, and what they do

How an OS interfaces with users, applications, and hardware

How system resources help hardware and software communicate

Page 3: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

3A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Introducing Operating Systems

Software that controls a computer

Acts as a middleman between applications and hardware

Two main internal components

Shell

Kernel

Page 4: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

4A+ Guide to Managing and Maintaining Your PC, Fifth Edition

OS as a Middleman

Page 5: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

5A+ Guide to Managing and Maintaining Your PC, Fifth Edition

The Shell and the Kernel

Page 6: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

6A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Common Operating Systems

DOSWindows 9xWindows NT, Windows 2000, andWindows XPUnixLinuxOS/2Mac OS

Page 7: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

7A+ Guide to Managing and Maintaining Your PC, Fifth Edition

What an Operating System Does

Provides user interface

Stores, retrieves, and manipulates files and folders

Manages applications

Manages hardware

Page 8: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

8A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Provides a User Interface

Command-driven interfaces

Menu-driven interfaces

Icon-driven interfaces

Page 9: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

9A+ Guide to Managing and Maintaining Your PC, Fifth Edition

A Menu-Driven Interface

Page 10: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

10A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Manages Files and Folders

Uses file system (FAT or NTFS) to track how clusters are used for each stored file

Uses directories, subdirectories, and files

Uses partitions and logical drives on hard drive

Page 11: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

11A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Tracks, Sectors, and Clusters

Page 12: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

12A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Files and Directories

Page 13: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

13A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Partitions and Logical Drives

Page 14: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

14A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Manages Applications

Provides access to hardware resources

Manages data in memory and in secondary storage

Performs other background tasks

Page 15: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

15A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Loading Application Software Using the Windows Desktop

Shortcut icon

Start menu

Run command

Windows Explorer or My Computer

Page 16: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

16A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Using a Shortcut Icon to Load Software

Page 17: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

17A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Real and Protected Operating Modes

Real (16-bit) operating modeCPU processes 16 bits of data at one timeSoftware has “real” access to hardware

Protected (32-bit) operating modeCPU processes 32 bits of data at one timeMore than one program can be running, each one “protected” from othersUses preemptive multitasking

Page 18: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

18A+ Guide to Managing and Maintaining Your PC, Fifth Edition

16-Bit and 32-Bit Software

16-bit software

Written for Windows 3.x

Accesses data 16 bits at a time

Programs should not infringe on resources of other programs that are running

32-bit software

Written for Windows 95 and later Windows OSs

Page 19: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

19A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Manages Hardware

Uses device drivers or the BIOS (system BIOS, startup BIOS, or CMOS setup) to interface with hardware

Trend is to manage devices with device drivers rather than BIOS

Page 20: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

20A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Manages Hardware (continued)

Page 21: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

21A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Uses Device Drivers to Manage Hardware

Device drivers provide OS with software necessary to control devices

16-bit read-mode drivers

Supported by Windows 95/98

32-bit protected-mode drivers

Supported by Windows 95/98, Windows Me, and Windows NT/2000/XP

Page 22: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

22A+ Guide to Managing and Maintaining Your PC, Fifth Edition

How an OS Uses System BIOS to Manage Devices

To communicate with simple devices (eg, floppy drives or keyboards)

To access the hard drive

Page 23: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

23A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Using System BIOS

Page 24: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

24A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Using System BIOS (continued)

Page 25: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

25A+ Guide to Managing and Maintaining Your PC, Fifth Edition

System Resources

Page 26: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

26A+ Guide to Managing and Maintaining Your PC, Fifth Edition

System Resources (continued)

Depend on certain lines on a bus on motherboard

System bus componentsData bus carries data

Address bus communicates addresses (memory addresses and I/O addresses)

Control bus controls communication (IRQs and DMA channels)

Page 27: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

27A+ Guide to Managing and Maintaining Your PC, Fifth Edition

System Bus Components

Page 28: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

28A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Interrupt Request Number (IRQ)

Line on a bus that device needing service uses to alert the CPU

Managed by interrupt controller on motherboard

Early motherboards: eight IRQs

Second group of IRQs and second interrupt controller have been added to accommodate need for more devices

Page 29: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

29A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Common Assignments for First Eight IRQs

Page 30: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

30A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Second IRQ Controller

Page 31: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

31A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Viewing IRQ Assignments

Microsoft Diagnostic Utility (MSD) for DOS

Device Manager for Windows 2000/XP and Windows 9x

Page 32: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

32A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Viewing IRQ Assignments (continued)

Page 33: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

33A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Viewing IRQ Assignments (continued)

Page 34: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

34A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Memory Addresses

Hexadecimal numbers assigned to RAM and ROM so the CPU can access both

Used to access physical memory

Often written in segment:offset form(eg, C800:5)

Page 35: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

35A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Memory Addresses (continued)

Page 36: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

36A+ Guide to Managing and Maintaining Your PC, Fifth Edition

I/O Addresses

Numbers CPU can use to access hardware devices

Page 37: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

37A+ Guide to Managing and Maintaining Your PC, Fifth Edition

I/O Addresses (continued)

Page 38: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

38A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Common Assignments for I/O Addresses

Page 39: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

39A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Direct Memory Access (DMA) Channels

Shortcut method that lets an I/O device send data directly to memory, bypassing the CPU

Page 40: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

40A+ Guide to Managing and Maintaining Your PC, Fifth Edition

DMA Channels

Page 41: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

41A+ Guide to Managing and Maintaining Your PC, Fifth Edition

OS Tools to Examine a System

Device Manager

System Information utility

Microsoft Diagnostic Utility (MSD)

Page 42: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

42A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Device Manager

Primary tool used to manage hardware devices under Windows 2000/XP and Windows 9x

Page 43: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

43A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Device Manager ( continued)

Page 44: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

44A+ Guide to Managing and Maintaining Your PC, Fifth Edition

System Information Utility

Gives similar, but more, information than Device Manager

BIOS version in use

Directory where OS is installed

How system resources are used

Information about drivers and their status

Additional information about software

Page 45: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

45A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Using Windows System Information

Page 46: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

46A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Microsoft Diagnostic Utility (MSD)

Useful for viewing information about the system, including:

Memory

Video

Ports

Device drivers

System resources

Page 47: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

47A+ Guide to Managing and Maintaining Your PC, Fifth Edition

Using MSD

Page 48: Chapter 2 - EWU · How Hardware and Software ... Fifth Edition 6 Common Operating Systems zDOS ... A+ Guide to Managing and Maintaining Your PC, Fifth Edition 28

48A+ Guide to Managing and Maintaining Your PC, Fifth Edition

SummaryHow hardware and software work together

Different operating systems

What they do

How they work to control hardware devices

How an OS provides the interface that users and applications need to command and use hardware devices