lecture_slides_09_092-indirection
lecture_slides_09_092-indirection
Indirection
University of Washington
Indirection
University of Washington
Indirection
“Any problem in computer science can be solved by
adding another level of indirection”
Name
Without Indirection Thing
Thing
Indirection
University of Washington
Indirection
Indirection: the ability to reference something using a name, reference, or
container instead the value itself. A flexible mapping between a name
and a thing allows changing the thing without notifying holders of the
name.
Name
Thing
Without Indirection
Name
Thing
With Indirection
Thing
Examples:
Domain Name Service (DNS) name->IP address, phone system (e.g., cell
phone number portability), snail mail (e.g., mail forwarding), 911 (routed
to local office), DHCP, call centers that route calls to available operators,
etc. Indirection
University of Washington
Process 1
Physical memory
mapping
Virtual memory
Process n
Address Spaces
Virtual address space: Set of N = 2n virtual addresses
{0, 1, 2, 3, …, N-1}
Indirection
University of Washington
Mapping
Physical
Memory
Virtual Address
Disk
Indirection
University of Washington
...
M-1:
Data word
...
M-1:
Data word