Download Numerical Computation Guide

Transcript
tellers from leaving for home before the grand total is checked. If debits do not
equal credits, all tellers must return to their desks to find the error. The barrier
is removed after the vice president obtains a satisfactory grand total.
biased exponent
binade
The sum of the base-2 exponent and a constant (bias) chosen to make the
stored exponent’s range non-negative. For example, the exponent of 2-100 is
stored in IEEE single precision format as (-100) + (single precision bias of 127)
= 27.
The interval between any two consecutive powers of two.
blocked state||
A thread is waiting for a resource or data; such as, return data from a pending
disk read, or waiting for another thread to unlock a resource.
bound threads||
For Solaris threads, a thread permanently assigned to a particular LWP is
called a bound thread. Bound threads can be scheduled on a real-time basis in
strict priority with respect to all other active threads in the system, not only
within a process. An LWP is an entity that can be scheduled with the same
default scheduling priority as any UNIX process.
cache||
Small, fast, hardware-controlled memory that acts as a buffer between a
processor and main memory. Cache contains a copy of the most recently used
memory locations—addresses and contents—of instructions and data. Every
address reference goes first to cache. If the desired instruction or data is not in
cache, a cache miss occurs. The contents are fetched across the bus from main
memory into the CPU register specified in the instruction being executed and a
copy is also written to cache. It is likely that the same location will be used
again soon, and, if so, the address is found in cache, resulting in a cache hit. If
a write to that address occurs, the hardware not only writes to cache, but can
also generate a write-through to main memory.
See also associativity, circuit switching, direct mapped cache, fully associative cache,
MBus, packet switching, set associative cache, write-back, write-through, XDBus.
cache locality||
A program does not access all of its code or data at once with equal probability.
Having recently accessed information in cache increases the probability of
finding information locally without having to access memory. The principle of
locality states that programs access a relatively small portion of their address
space at any instant of time. There are two different types of locality: temporal
and spatial.
Temporal locality (locality in time) is the tendency to reuse recently accessed
items. For example, most programs contain loops, so that instructions and data
are likely to be accessed repeatedly. Temporal locality retains recently accessed
items closer to the processor in cache rather than requiring a memory access.
See also cache, competitive-caching, false sharing, write-invalidate, write-update.
Spatial locality (locality in space) is the tendency to reference items whose
addresses are close to other recently accessed items. For example, accesses to
elements of an array or record show a natural spatial locality. Caching takes
268
Numerical Computation Guide • May 2000