Computer Basics csc105
Computer Basics csc105
1
Lecture Topics
• Functions of a computer
• Data versus information
• Bits and bytes
• Storage
• Processing
• How computers evolved
• Input: data the computer collects from people and other devices
• Input device: component that collects the data
• Examples: keyboard, mouse, scanner, camera
• Disk drives can be considered input devices because they load programs into
the main memory
Output Devices
1-10
Figure 1.8 Memory cells arranged by address
1-11
Read-only memory (ROM):
Lock
• Central processing unit (CPU): the part of the computer that actually
runs programs
• Most important component
• Without it, cannot run software
• Used to be a huge device
• Microprocessors: CPUs located on small chips
Central Processing Unit (CPU)
Page 354 18
Discovering Computers 2012: Chapter 7
Figure 7-2
Copyright © 2011 Pearson Education,
19
Inc. Publishing as Prentice Hall
Storing Characters
•F o u r a n d s e v e n
• 70 111 117 114 32 97 110 100 32 115 101 118 101 110
• By looking in the ASCII table, you can see a one-to-one
correspondence between each character and the ASCII code used.
Note the use of 32 for a space -- 32 is the ASCII code for a space.
• We could expand these decimal numbers out to binary numbers (so
32 = 00100000) if we wanted to be technically correct -- that is how
the computer really deals with things. (more on this later)
• The first 32 values (0 through 31) are codes for things like carriage
return and line feed.
• The space character is the 33rd value, followed by punctuation,
digits, uppercase characters and lowercase characters.
1-24
Advanced Number Storage
1-27
Representing Sound
• Sampling techniques
• Used for high quality recordings
• Records actual audio
• MIDI
• Used in music synthesizers
• Records “musical score”
1-28
Figure 1.12 The sound wave represented by the
sequence 0, 1.5, 2.0, 1.5, 2.0, 3.0, 4.0, 3.0, 0
1-29
Secondary Storage Devices
• Secondary storage: can hold data for long periods of time
• Programs normally stored here and loaded to main memory when needed
• Types of secondary memory
• Disk drive: magnetically encodes data onto a spinning circular disk
• Solid state drive: faster than disk drive, no moving parts, stores data in solid
state memory
• Flash memory: portable, no physical disk
• Optical devices: data encoded optically
Page 355 31
Discovering Computers 2012: Chapter 7
Figure 7-5
Figure 1.9 A magnetic disk storage system
1-32
Flash Memory Storage
• Flash memory chips are a type of solid state media and contain no moving
parts
• Solid state drives (SSDs) have several advantages over magnetic hard disks:
Page 368 34
Discovering Computers 2012: Chapter 7
Figure 7-23
Optical Discs
• An optical disc consists of a flat, round, portable disc made of metal, plastic,
and lacquer that is written and read by a laser
• Typically store software, data, digital photos, movies, and music
• Read only vs. rewritable
• DVD
• DVD-RW (rewritable DVD)
• Blu-Ray (5 X the storage of DVD)
Page 370 35
Discovering Computers 2012: Chapter 7
Figure 7-25
More About the Processing
Unit
46
Advancing Rates of Technology
(Moore’s Law)
5-47
Von Neumann Architecture
• “stored program”
• serial uniprocessor
design
• binary internal
encoding
• CPU–Memory–I/O
orgranization
• “fetch-decode-
execute” instruction cycle
Electrical Switches
• The system unit contains the CPU
• The CPU uses a large number of switches
• Two states: 1 or 0 (on or off)
• Binary language consists of two numbers: 1 or 0
• These switches are used to process data
Lock
• Transistors
• Electrical switches built of layers of silicon
• Early transistors were built in separate units as small metal rods
• Each rod was a small on/off switch
• Smaller and faster than vacuum tubes
• Produced less heat
52
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall
Integrated Circuits
• Integrated circuits use solid-state technology, whereby
electrons travel through solid material called silicon
• Made of semiconductor material, silicon
• Contain huge number of transistors, resistors, capacitors, and diodes
• Small size, only ¼ inch
in diameter
53
Microprocessors
5-55
The Death of Moore’s Law?
• Microsoft, Yahoo!, and Google have all built massive data centers
in the Pacific Northwest in order to benefit from cheap
hydroelectric power
• The chief eco officer at Sun Microsystems has claimed that computers
draw four to five percent of the world’s power
• Google’s chief technology officer has said that the firm spends more to
power its servers than the cost of the servers themselves
• Chips can’t get smaller forever because chip pathways can’t be
shorter than a single molecule and actual physical limit may be
higher
5-56
Buying Time
• Multicore microprocessors: Microprocessors with two or more
(typically lower power) calculating processor cores on the same
piece of silicon
• For many applications, the multicore chips will outperform a single
speedy chip, while running cooler and drawing less power
• Multicore processors are now mainstream
• Today, most PCs and laptops sold have at least a two-core (dual-core)
processor
• Intel has demonstrated chips with upwards of fifty cores
5-57
Buying Time
• Another approach moves chips from being paper-flat devices to
built-up 3-D affairs
• By building up as well as out, firms are radically boosting speed
and efficiency of chips
5-58
Nanotechnology
• The prefix “nano” stands for one-billionth
• Ability to manufacture extremely small devices
• “Smart” nanodust may be combined with wireless technologies to
provide new environmental monitoring systems
• Current approach – start big and squeeze, press, slice, and dice to
make things small
• Nanotechnology approach – start with the smallest element possible
(i.e., atom) and build up
This nanomechanical structure fabricated by a
team of physicists at Boston University consists of
a central silicon beam, 10.7 microns long and 400
nm wide, that bears a paddle-array 500 nm long
and 200 nm wide along each side. This antenna-
like structure oscillated at 1.49 gigahertz or 1.49
billion times per second, making it the fastest
moving nanostructure yet created.
59
Nanotechnology Impact
• Pharmaceuticals
• Drug delivery encapsulated in “nano-spheres”
• Electronics
• Faster, smaller processors
• Immense storage capacities
• Material Science
• Stronger materials
• Super conductivity
60
Quantum Computing
• Many believe that quantum computing systems represent the next
major revolution in computing
• Quantum computers will be exponentially faster than today’s
fastest supercomputers
61
Quantum Computing
Video - CNN Video
• Quantum computing uses qubits instead of transistors (bits)
• A single qubit (utilizing particle spin) stores and processes twice as much
information as a regular bit.
• Combining qubits delivers exponential improvement
• Two qubits are four times more powerful than two bits
• A 64-qubit computer would theoretically be 264 (=18 billion trillion) times
more powerful than the latest 64-bit computers!
• The first prototype quantum computer (with two qubits) was created in 1998
• In 2001, Almaden Research Center demonstrated a 7-qubit machine (using 10
billion billion atoms) that could factor the number 15
• In early February 2007, D-Wave Systems, Inc., a privately-held Canadian firm
headquartered near Vancouver, announced: “the world’s first commercially viable
quantum computer”
62
DNA Computers
• Use DNA molecules and special enzymes instead of silicon
chips
• Because it involves the four nucleic acids represented by A, T,
C, and G, it is NOT a system of binary computing.
• 330 trillion operations per second
• 100,000 times faster than current
silicon-based computers
• No practical applications
yet