19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.2 What Is a Computer? 3<br />

CPU<br />

Memory<br />

S<strong>to</strong>rage<br />

Devices<br />

Bus<br />

Input<br />

Devices<br />

Output<br />

Devices<br />

Communication<br />

Devices<br />

FIGURE 1.1 A <strong>com</strong>puter consists of a CPU, memory, s<strong>to</strong>rage devices, input devices, output<br />

devices, and <strong>com</strong>munication devices.<br />

power travel along the bus from one part of the <strong>com</strong>puter <strong>to</strong> another. In personal <strong>com</strong>puters,<br />

the bus is built in<strong>to</strong> the <strong>com</strong>puter’s motherboard, which is a circuit case that connects all of<br />

the parts of a <strong>com</strong>puter <strong>to</strong>gether, as shown in Figure 1.2.<br />

1.2.1 Central Processing Unit<br />

The central processing unit (CPU) is the <strong>com</strong>puter’s brain. It retrieves instructions from<br />

memory and executes them. The CPU usually has two <strong>com</strong>ponents: a control unit and an<br />

arithmetic/logic unit. The control unit controls and coordinates the actions of the other <strong>com</strong>ponents.<br />

The arithmetic/logic unit performs numeric operations (addition, subtraction, multiplication,<br />

division) and logical operations (<strong>com</strong>parisons).<br />

Today’s CPUs are built on small silicon semiconduc<strong>to</strong>r chips that contain millions of tiny<br />

electric switches, called transis<strong>to</strong>rs, for processing information.<br />

Every <strong>com</strong>puter has an internal clock, which emits electronic pulses at a constant rate.<br />

These pulses are used <strong>to</strong> control and synchronize the pace of operations. A higher clock speed<br />

enables more instructions <strong>to</strong> be executed in a given period of time. The unit of measurement of<br />

clock speed is the hertz (Hz), with 1 hertz equaling 1 pulse per second. In the 1990s <strong>com</strong>puters<br />

measured clocked speed in megahertz (MHz), but CPU speed has been improving continuously,<br />

motherboard<br />

CPU<br />

speed<br />

hertz<br />

megahertz

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!