Professional Documents
Culture Documents
http://en.wikipedia.org/wiki/CPU
http://en.wikipedia.org/wiki/Front_side_bus
http://en.wikipedia.org/wiki/Machine_language
http://en.wikipedia.org/wiki/Computer_multitasking
Control Unit: controls operations of other parts of CPU as well as all parts
of computer by sending a control signal (control sequence of instruction to
be executed, control flow of data among all parts of computer, interpret
instructions )
Arithmetic and Logic Unit consists of a complicated set of logic circuit and
accumulator.It is mainly reponsible for calculation and logical comparsion
and decision
Registers: small amount of storage available on the CPU whose contents
can be accessed more quickly any other storage. Kinds of registers
(classified according to their content or instructions that operate on them):
The Bus is the set of wires used to carry information to and from the
processor
Data (memory) bus: carry the data being transferred.
Address bus: carries information about where in memory the data is to
be transferred to or from
Control bus: carries commands from the CPU and returns status
signals from the devices. Tipical control lines include:
Memory Write: causes data on the data bus to be written into the
addressed location.
Memory Read: causes data from the addressed location to be placed on
the data bus.
I/O Write: causes data on the data bus to be output to the addressed I/O
port.
I/O Read: causes data from the addressed I/O port to be placed on the
data bus.
Transfer ACK: indicates that data have been accepted from or placed on
the data
A hard disk for storing programs and data files. (Note that
main memory holds only a comparatively small amount of
information, and holds it only as long as the power is turned
on. A hard disk is necessary for permanent storage of larger
amounts of information, but programs have to be loaded
from disk into main memory before they can actually be
executed.)
Processing interrups
The CPU is built so that when that wire is turned on, it saves
enough information about what it is currently doing so that it
can return to the same state later. This information consists of
the contents of important internal registers such as the
program counter. Then the CPU jumps to some predetermined
memory location and begins executing the instructions stored
there. Those instructions make up an interrupt handler that
does the processing necessary to respond to the interrupt.
(This interrupt handler is part of the device driver software for
the device that signalled the interrupt.) At the end of the
interrupt handler is an instruction that tells the CPU to jump
back to what it was doing; it does that by restoring its
previously saved state.
Interrupts make it possible for the CPU to deal efficiently with
events that happen "asynchronously", that is, at unpredictable
times.
Multitasking - the CPU has several tasks to perform (the user might be
typing a paper while a clock is continuously displaying the time and a file is
being downloaded over the network). Multitasking solves the problem by
scheduling which task may be the one running at any given time, and
when another waiting task gets a turn.
Each of the individual tasks that the CPU is working on is called a thread
(ar a process)
At any given time, only one thread can actually be executed by a CPU.
The CPU will continue running the same thread until one of several things
happens:
the thread might voluntarily yield control, to give other threads a chance to run
(cooperative multitasking).
the thread might have to wait for some asynchronous event to occur
the thread might use up its allocated slice of time and be suspended to allow
other threads to run >> not all computers can "forcibly" suspend a thread in this
way; those that can are said to use preemptive multitasking