Professional Documents
Culture Documents
Basic Computer
Theory and Terms
This lesson covers the most basic physical components of a computer
system and the basic elements of the operating system. It also provides an
introduction to what happens when a computer starts up, so that you
can troubleshoot a computer that isn’t starting up properly. Though
you may already be familiar with this material, even if you only use it
as a refresher, this lesson will help you discuss Macintosh support
questions with your customers.
Before you can isolate or resolve trouble in an Apple product, you must
be able to distinguish normal from abnormal operation. By familiarizing
yourself with normal operation, you will be better able to recognize the
problems your customers try to describe.
If you think you already know this material, start with the Lesson
Review. If you complete the review without error or consulting the
text, you can skip to the next lesson.
1
2 Basic Computer Theory and Terms
While this isn’t a detailed comprehensive look at the inside of the computer, we
will cover all of the major pieces. The components discussed in this lesson are:
씰 Processor: The brain of the computer is located on the main logic board
(MLB). This is where the operating system (OS) works, games render
images, and spreadsheets calculate. Most Apple computers use one of
four types of processors: PowerPC G4, PowerPC G5, Intel Xeon, or Intel
Core Duo.
씰 RAM: This is where the processor keeps information on which it works.
씰 Cache: This is a section of RAM that is assigned a specific function.
씰 Drives: These store all of the information you process and make on a
Macintosh. There are two basic types of disk drives, magnetic and optical;
we’ll take a look at both.
씰 USB: One of the interconnect technologies used on the Macintosh to con-
nect peripherals, Universal Serial Bus (USB) is intended for slower, less
demanding peripherals, such as keyboards and mice, although it can be
used to connect disk drives and cameras.
Basic Hardware Components 3
Once we have all the pieces down, we’ll then look at how they work together to
make your computer do what you want it to (well, most of the time anyway)
in the startup process.
Processors
A lot happens in a processor during one clock cycle. A processor works with
instructions, which are commands from the software. It may take several
instructions to complete a task. The G4 processors, for example, can issue up
to 20 instructions per cycle thanks to parallel processing, or working on more
than one instruction at a time.
4 Basic Computer Theory and Terms
We should pause here and note the difference between an instruction and data.
An instruction is a command issued by the processor. This instruction is made
up of, and will produce, data. A processor’s performance is measured by both
the number of instructions it can process and the amount of data it can move.
To gain even more efficiency, today’s processors are usually composed of mul-
tiple execution units that operate independently and simultaneously, but on
different instruction types. Execution units are built onto a specific physical
area of the processor chip, have specific strengths, and work only on a certain
type of instruction. Depending on the nature of the instruction, it will be
routed to and processed by the appropriate execution unit.
One of the execution units is called the integer unit. Integer math is the most
common type of calculation used by software. Another execution unit is the
floating-point unit. Floating-point calculations are common in graphical and
mathematical software.
PowerPC G4 Processor
The PowerPC G4 processor introduced a new execution unit called the vector-
processing unit. Apple called this unit the Velocity Engine; Motorola referred
to it as AltiVec. This unit could process 128 bits of data in one cycle instead of
the standard 32 or 64 bits common in other processors. This enabled the unit
to perform demanding tasks such as speech recognition and compression or
real-time encoding of video or sound. The only catch was that software had to
be rewritten to take advantage of the Velocity Engine.
Basic Hardware Components 5
PowerPC G5 Processor
The Power Mac G5 marked the arrival of 64-bit computing to the personal
computer market. The development of the PowerPC G5 built on previous
PowerPC designs, combining an optimized Velocity Engine that supports up
to 215 simultaneous in-flight instructions.
All new Macintosh computers now use either Intel Xeon or Intel Core Duo
processors, which have brought significant increases in performance while
reducing heat output. In subsequent lessons, we will examine the service and
troubleshooting consequences of this latest transition.
6 Basic Computer Theory and Terms
RAM
The contents of RAM are present only as long as the computer is powered.
Shut down the computer and all of the RAM content is lost.
There are different configurations of RAM, and this can be confusing, especially
when deciding what RAM goes in your Macintosh. In addition, some Macintosh
computers need RAM installed in DIMM pairs. RAM changes every time the
processor changes and sometimes more often. This change is necessary so that
RAM can keep up with the continually advancing processors. If the RAM did
not change, you would likely not see as much of a performance increase from
processor to processor.
Here are the different types of RAM that will work with Macintosh computers:
씰 DIMM (dual inline memory module): larger capacity and faster than
SIMMs (single inline memory module)
Basic Hardware Components 7
Video Memory
Video cards in newer Apple computers—iMac (Flat Panel), PowerBook G4,
Power Mac G4—incorporate DDR RAM (double data rate RAM). Here are
some additional RAM-related definitions:
씰 VRAM (video RAM): Same as DIMMs, but dedicated to video output and
processing.
씰 SGRAM (synchronous graphics RAM): Synchronizes with the graphics
processor for better performance. Same as SDRAM.
씰 DDR-SDRAM (double data rate synchronous DRAM): Doubles the memory
chip’s data throughput. Consumes less power. Also called SDRAM II.
8 Basic Computer Theory and Terms
Cache
To minimize the wait time associated with accessing data from main memory,
most processors have a small amount of RAM built into the processor that is
used to store bits of frequently used code, increasing processor efficiency and
throughput. This RAM is called Level 1 (L1) cache and ranges in size from
32 KB to 256 KB on modern processors. With applications and operating
systems becoming more complex, a larger cache would be helpful. However,
processors are getting smaller and more energy conscious, so there isn’t much
room for a larger Level 1 cache. Enter the Level 2 (L2) cache.
L2 cache is not on the processor, but is located very close to it and has a higher
speed connection than is available to other components. Level 2 cache is often
larger than Level 1 cache, ranging from 256 KB to 1 MB or larger. In addition
to the 256 KB L2 cache, some PowerPC G4 microprocessor configurations also
had Level 3 (L3) cache. The Power Mac G5 processor further enhanced the L1
and L2 caches.
Another cache used frequently in computers is called disk cache. This works
the same way as other caches, but sets aside a bit of RAM to store frequently
used data from the hard drive. Accessing RAM is much faster than accessing
the hard drive, so performance is increased. You can see this for yourself. Next
Basic Hardware Components 9
time you start up a Mac, open the hard disk icon on the Finder desktop. The
first time you do this, you’ll hear the hard drive being accessed. Once the win-
dow opens, close it and open it again. The window will open instantly and the
hard drive is not accessed. This is the disk cache in operation.
Drives
Your Macintosh needs some place to store the operating system, applications,
and the files you create when they are not in use or the power is off. RAM
loses power along with the rest of the computer, so you can’t leave information
in there. You need something more permanent.
Disk drives are the answer. These are drives that contain platters that spin.
Information is written to the platter in a series of 1s and 0s. Since the information
is written to the drive in a “permanent” fashion, the data is retained even
though the computer is shut down. Permanent is a relative term, and here
means compared to the rest of the computer. It is still possible to lose data on
a disk drive through negligence, accident, abuse, or environmental situations.
There are two basic types of disk drives: magnetic and optical. Which one you
use depends on several different factors. Let’s look at both types and some
examples of each. We’ll also discuss the pros and cons and describe the best
use of each type.
Magnetic Drives
Hard drives, floppy drives, and Zip drives all have at least one thing in common:
They all store data on disks using magnetism. In this section we’ll focus on the
hard drive, but the principles are basically the same for all magnetic drives.
10 Basic Computer Theory and Terms
Hard drives contain one or more disks or platters that spin around at several
thousand revolutions per minute. Typical speeds for hard drives range from
5,400 to 10,000 rpm. Usually the faster the platter spins, the faster data can be
retrieved off of the drive. These platters are made of a material that can be
magnetized.
Reading the particles happens in the reverse. As the heads pass over the parti-
cles, a current is generated in the coil. A current in one direction is a 1, the
other a 0.
Most hard drives also contain a cache. This cache is used to store frequently
requested data. When a call comes for data from the hard drive, the cache is
checked first. Considerable time can be saved if the data can be sent from
there instead of accessing the platters.
Most hard drives today contain multiple platters and multiple heads. The
heads are all connected and move at the same time. The platters are also all
connected and spin at the same speeds.
Formatting a disk prepares it to contain data. There are two types of format-
ting on any disk: physical and logical.
Physical formatting refers to what is actually done to the surface of the disk.
Concentric rings, called tracks, are created by strongly magnetizing particles to
create boundaries. These tracks are very similar to the tracks on a vinyl record.
The tracks are then divided into sectors.
Logical formatting refers to keeping track of the data within the physical for-
matted boundaries. Blocks of data are created using sectors. Blocks are not
physical, but instead are notations of which sectors contain the data. Blocks
Basic Hardware Components 11
are the smallest amount of data that is moved on or off a platter. Blocks may
cover several sectors and will never contain partial sectors.
Partitions are created using software, but are physically determined on the
platter. Strongly magnetized boundaries are created marking the beginning
or end of a partition. Partitioning a large drive into smaller drives can
increase system performance since it cuts down on the area to search when
retrieving data.
Optical Drives
Optical drives use light to read and write information to and from discs. While
the principle of operation is similar to magnetic drives, there are some crucial
differences.
CDs and DVDs are made up of a recording layer, usually aluminum, sand-
wiched between a protective plastic covering. When data is recorded onto the
discs, it is done in a series of pits and lands. Pits absorb the light from the
laser while lands reflect it. So pits are 0s and lands are 1s.
Another difference from magnetic drives is the way the data is laid onto the
discs. Instead of tracks, the data is recorded onto the disc in a single spiral
track beginning at the center of the disk. Because of this, CDs will spin at a
variable rate depending on the location of the laser. The CD will slow down as
12 Basic Computer Theory and Terms
the head moves toward the outer edge. By doing this, the head maintains the
same velocity over the data.
CD-RW, DVD-R, and DVD-RAM drives have yet another subtle difference.
Media used in these drives are made of crystalline material that loses its struc-
ture when heated by the laser of the drive. When the structure is lost, that area
of the drive loses its reflectivity. So instead of pits and lands on this media, you
have bright spots and dark spots. CDs have a capacity of 650–700 MB; DVDs
have a capacity of 4.7–17 GB.
USB
You can attach peripherals to your Macintosh through either of two buses,
USB and FireWire. USB is generally used for slower devices like keyboards
and mice; FireWire is used for high-speed devices such as hard drives and
digital camcorders. Both of these are built in to all Macintosh computers
shipping today.
USB is capable of supporting 127 devices on one bus. Most of the Macintosh
computers today have two USB buses, giving you the option of a total of
254 devices connected to one computer.
Basic Hardware Components 13
To connect that many devices, you need USB hubs. Hubs give you multiple
USB ports. Some devices, such as the USB keyboard that comes with iMac and
Power Mac G4 models, have built in hubs, which enable you to connect another
USB device to the available port on the keyboard.
USB can supply a small amount of power to devices. The mouse, for instance,
is powered by USB. As long as the device does not need more than 500 mA at
5 volts, it can draw power from USB. Any peripheral that requires greater than
500 mA at 5 V, such as a printer or scanner, would need external power to be
supplied.
USB is a hot-pluggable bus, meaning the computer does not need to shut
down or restart to connect peripherals. The Macintosh will recognize that a
device has been connected right away and will look for drivers to communi-
cate with it.
USB transfers data at either 1.5 megabits per second (Mbit/s) or 12 Mbit/s. It
can transfer both speeds at the same time, as in the case when you have a key-
board (which uses the 1.5 Mbit/s speed) and a camera (using 12 Mbit/s) con-
nected. USB 2.0 devices can transfer data at a rate of 480 Mbit/s.
We have the USB specifications, but how does USB work? The Mac OS keeps
track of USB devices in the USB Manager. This software identifies and assigns
addresses to and monitors priority of USB devices. Priority determines the
type of data flow to and from the device. Isochronous transfer is the highest
priority, permitting a continuous stream of data without interruption. A digi-
tal speaker is one such device that would require isochronous transfer.
Devices are connected using a two-pair (four-wire) cord. One pair is used for
data and control signals and the other pair is used for power. The two wires in
the data pair are called Data+ and Data–. When a device is connected to USB,
it causes a change in voltage in one of these two wires. A signal on Data+ indi-
cates the device is high speed, while a signal on Data– indicates a low-speed
device.
14 Basic Computer Theory and Terms
Finally, drivers allow the OS and applications to communicate with the USB
device. Some drivers are known as Class drivers. These drivers work with a
variety of devices. Apple includes two Class drivers, one for keyboards and
mice, the other for hard drives. Other devices, such as printers, may require
specific drivers.
You’ll learn more about USB and USB 2.0 in Lesson 5b, “Underlying Tech-
nologies,” on this book’s companion website, www.peachpit.com/ats.deskport3.
FireWire
So what if you need more speed than USB provides? Transferring large quanti-
ties of data at 12 Mbit/s can take a while. Enter FireWire.
FireWire is a serial bus just like USB. You can connect up to 63 devices on one
port or bus. Yet FireWire has a more complex communication protocol than
USB. FireWire cable uses a three-pair cord. Two pairs of wires transferring
data and faster signaling helps FireWire achieve faster transfer rates than USB.
You’ll learn more about FireWire and FireWire 800 in Lesson 5b.
Expansion Slots
Some desktop Macintosh computers have expansion slots built in. These slots
let you add more memory, a second hard drive, or an AirPort Extreme Card
quickly and easily.
There are two basic types of busses that provide communication between slots
and the logic board: PCI and AGP.
Basic Hardware Components 15
PCI
Peripheral Component Interconnect (PCI) is one of the main busses of the
computer. It handles communication between the processor, all expansion
slots, and the USB, Bluetooth, and AirPort ports through intermediary bus
bridge electronics. These electronics on the logic board and software in the
Mac OS help facilitate the flow of data between all of the components.
When a Macintosh starts up, software called Open Firmware in the PCI card’s
ROM contacts software in the Name Registry on the Macintosh. The configu-
ration and location of the card are stored in the Macintosh RAM. Open
Firmware then checks to see if it’s in a Macintosh or PC.
Some cards, however, don’t need to be loaded at startup. A network card, for
example, doesn’t load until its driver, an extension located in the Mac OS,
loads as the operating system loads.
There are several different versions of PCI. Understanding their differences will
enable you to resolve compatibility issues when installing peripheral cards:
씰 The original PCI standard allows for up to 66 MHz clock speed and a
maximum transfer rate of 133 MB/s.
씰 PCI-X allows for up to 133 MHz clock speed and a maximum transfer rate
of 533 MB/s.
씰 PCI Express has a maximum transfer rate of 4000 MB/s.
AGP
Some Macintosh computers have an Accelerated Graphics Port (AGP) slot,
which is actually just an enhanced PCI slot. It’s built on the same protocol, but
under certain circumstances can transfer data at a faster rate. The AGP slot
also has a faster bus to the Macintosh computer’s main RAM.
16 Basic Computer Theory and Terms
Users are demanding more and more performance out of their computers, and
one area under the most demand is graphics. Whether it’s the latest games, 3D
rendering, or video editing, faster graphics are required.
The AGP slot does not multiplex addresses and data, but keeps them separate.
Because of this, the AGP bus can process multiple addresses at the same time,
improving performance.
The UniNorth chip acts as the AGP controller chip. One of its functions is to
remap data in the Macintosh computer’s main RAM to make it more readily
accessible to the AGP bus. This speeds up access to large chunks of data, the
kind of data you would see with video or 3D images.
Now that you have a good grasp of the components that make up a Macintosh
and a how they communicate, it’s time to take a look at the software that tells
the components what to do.
Firmware
Firmware is a combination of software and hardware: a computer chip that
has data and/or software instructions recorded on it. These chips commonly
include the following:
Many Apple products contain firmware for various functions, including help-
ing the computer start up and remembering various system settings when
the computer is shut down. Firmware is designed to be updated, if necessary,
through a downloadable firmware update.
Basic Software Components 17
MORE INFO 씰 To learn more, read the following Knowledge Base docu-
ments: 93772, “What is Firmware?”; 58492, “Differences Between the
Mac OS ROM and bootROM”; 86117, “Mac OS X: Available firmware
updates”; 303364, “About firmware updates for Intel-based Macs”; 303880,
“Mac OS X: Firmware Updates for Intel-based Macs”; and 303725, “About
the SMC Firmware Updates.”
Software
Software is data (information), made up of instructions used to accomplish a
task. We associate software most often as being stored on media, such as a disk
(hard disk, CD-ROM, DVD). However, software can be stored on any record-
able medium.
Software can be divided into two primary categories: system software and
application software.
read a CD-ROM), and software needed to interact with the user (for example,
the software that understands function key assignments). The terms system
software and operating system are interchangeable for most users.
Apple releases system software online or through retail outlets for existing Apple
hardware. Apple also releases system software bundled (included) with new
computers.
The term “reference release” means that the software is distributed as a stand-
alone system software package that can be installed regardless of the version of
Mac OS currently installed. When Apple uses the term “software upgrade,” it
means a major, standalone version of a software product. Such products are
usually purchased in a box or shrink-wrapped package.
Let’s review some of the other terms we’ll be using in this book:
Computer Operations
You need to know what the computer looks and sounds like when it’s operat-
ing normally so you have clues if it operates abnormally. Here we’ll talk about
three fundamental states of operation: startup and shutdown, sleep, and kernel
panic.
Power On, Boot-ROM/RAM check You may hear a click, fans or hard
is initialized disks spinning, or CRT crackling
Shutdown Process
In comparison to starting up, the process of logging out or shutting down is
simple. After a user selects Log Out, Restart, or Shut Down and confirms the
action, loginwindow quits all of the user’s applications and, if appropriate,
resets hardware and restarts or shuts down the computer.
22 Basic Computer Theory and Terms
NOTE 씰 Although we’ve included some startup cues that show errors, if
you’re troubleshooting a computer that won’t start up properly, your best
bet is to check the service manual for the cues for that computer. Startup
error tones, beeps, etc., can change from model to model.
Sleep
Here is what happens when a computer goes to sleep.
On all computers:
Kernel Panic
UNIX-style operating systems, such as Mac OS X, may experience a type of
error called a “kernel panic,” which may provide information useful for soft-
ware developers.
A kernel panic is a type of error that occurs when the core (kernel) of an oper-
ating system receives an instruction in an unexpected format, or one that it fails
to handle properly. This error may also follow when the operating system is not
able to recover from a different type of error. A kernel panic can be caused by
damaged or incompatible software or, more rarely, damaged or incompatible
hardware.
24 Basic Computer Theory and Terms
Here is the onscreen dialog that a Macintosh system running Mac OS X 10.2
or later displays:
Lesson Review
1. Which three of the following constitute a basic computer system?
a. USB printer
b. Monitor
c. Processor
d. FireWire hard drive
e. Slots
f. Keyboard and mouse or trackpad
2. What is the “brain” of the computer called? Where is located?
3. To which form of memory must you save your work before the computer
is turned off?
4. Which form of memory loses information when the computer is
turned off?
5. Name and define the seven types of RAM that work with Macintosh
computers.
6. What is the basic difference between system software and application
software?
7. Describe the two ways in which Apple distributes software to customers.
8. Describe the three types of releases in which Apple distributes changes to
software.
9. What do we mean when we say a computer is booting?
10. What is the first resource used when a computer is powered on?
11. What is POST?
12. If you get a series of beeps at start up of an iMac G5 running Mac OS X
10.4 Tiger, which of the following has failed?
a. Power On
b. BootROM—POST
c. BootROM—Open Firmware
d. BootX
Cementing Key Terms 27
e. Kernel
f. launchd
g. loginwindow
h. User environment setup
13. If the computer stops responding with the spinning gear visible, where is
the computer in the startup sequence?
a. Power On
b. BootROM—POST
c. BootROM—Open Firmware
d. BootX
e. Kernel
f. launchd
g. loginwindow
h. User environment setup
14. What is visible when a Macintosh G5 or Intel-based system has started up
successfully?
a. A black screen
b. Flashing lights and LEDs
c. A metallic Apple
d. A gray screen with Apple logo and spinning gear
e. A blue screen
f. Login window
g. The desktop and Dock
15. When can you release the C key and still have a PowerPC-based
Macintosh start up from a CD?
a. A black screen
b. Flashing lights and LEDs
c. A metallic Apple
28 Basic Computer Theory and Terms
Startup device
RAM
L2 cache
MHz
Frameworks
BootROM
Processor
17. Using the Apple Glossary (Knowledge Base document 51908) and the
material in this course, define the following terms:
Term Definition
Firmware
FireWire
Open Firmware
Kernel panic
Terminal
Combo drive
Lesson Review 29
Term Definition
PC card
AirPort-ready
Dynamic IP
18. Here is an excerpt from a System Profiler report. What is the name of the
startup hard disk?
—————————————————————————-
System Profile
—————————————————————————-
Software Overview:
+———————————————————————————————————+
||
| Kernel version : Darwin Kernel Version 6.6: Thu May 1 21:48:54 PDT 2003;
root:xnu/xnu-344.34.obj~1/RELEASE_PPC |
||
+———————————————————————————————————+
Hardware Overview:
+———————————————————————————————————+
||
30 Basic Computer Theory and Terms
| Number of processors : 1 |
||
+———————————————————————————————————+
Memory Overview:
DIMM0/J22 empty
Mac OS X
Macintosh HD
Darwin
elgy
Answer Key
1. b, c, f; 2. Processor, main logic board; 3. Memory that doesn’t require power,
for example, a magnetic drive or an optical drive; 4. Memory that requires
power, for example, RAM like SO-DIMM or SDRAM;
Lesson Review 31
5.
DIMM (dual inline memory module) Larger capacity and faster than
SIMM (single inline memory module)
16.
17.
Term Definition
Term Definition
Kernel panic Type of error that occurs when the core (kernel)
of an operating system receives an instruction
in an unexpected format or one that it fails to
handle properly
18. Macintosh HD