1Conceptual Review¶
Question
Solution
Solution
2Short Exercises¶
True/False: If a piece of data is both in the cache and in memory, reading it from cache is faster than reading from memory
Solution
True. The cache is smaller and faster than memory.
Conversions: Convert the following numbers into the quantity of bytes each term represents (you may leave your answer in terms of powers of 2). (See precheck section on IEC Prefixes for assistance)
a) 4 KiB
Solution
One KiB is 210 and , so bytes.
b) 2 MiB
Solution
One MiB is 220 and , so bytes.
c) 8 Kib
Solution
Notice how the unit is Kib (Kibibits) and not KiB (Kibibytes). One Kib is 210 bits, so bits. Because there are bits in one byte, we divide our answer to get bytes.
(Note that )
d) 24 GiB
Solution
We can factor . One GiB = 230, so we can write bytes (alternatively, just bytes).
e) 19 TiB
Solution
Note that 19 cannot be factored or easily representable in powers of 2. Following the same process as above, we can simplify to bytes trillion bytes.