Professional Documents
Culture Documents
Real-Time Memory Management
Real-Time Memory Management
UNIT–II
Timer Services and
Real Time Memory Management
Realtime Memory Management
Courtesy: Phillips A.Laplante - “Real-Time Systems
design and analysis”, 3rd Edition, John Wiley &
Sons, 2004.
CPU Cache Hierarchy
The CPU makes use of small, fast, Cost Speed
and very expensive registers.
CPU
Main memory is cheaper and
greater capacity but takes much
longer to access. Cache –
The CPU cache is used to exploit static RAM
locality – keeping copies of data
likely to be used again in faster Main Memory
access memory to reduce the – dynamic
average time taken to access the RAM
data.
The cache sits in-between the fast Storage –
Hard drive,
static CPU registers, and the slow
FLASH
memory both in terms of cost and 3
speed.
CPU Cache - Why do we use cache
90/10 Rule
◼ A typical processor spends 90% of its
execution time in 10% of the total program
code.
◼ This means we can store the critical 10% of
the code in a fast- accessible memory whereas
leave the rest 90% on a storage disk
Multiple stacks are needed to support runtime stacks for recursive languages.