1 \documentclass[tikz
]{standalone
}
2 \usetikzlibrary{arrows.meta,shapes.symbols,matrix,positioning
}
7 every node/.append style=
{
8 font=
\footnotesize\tt, outer xsep=
.4ex,
10 column
2/.append style=
{
11 every node/.append style=
19 descr/.style=
{draw=none,fill=none
},
20 break above/.style=
{shape=tape, tape bend top=in and out, tape bend bottom=none
},
21 break below/.style=
{shape=tape, tape bend top=none, tape bend bottom=in and out
},
22 !!/.style=
{fill=green!
20},
% chktex 26
23 pointer/.style =
{font=
\tt, anchor=base, inner sep=
2pt
},
25 \matrix (main)
[memory
] {
26 & |
[descr
]|
{\rm high addresses
} \\
34 & |
[descr
]|
{\rm low addresses
}\\
36 \matrix (heap)
[right=of main,memory,yshift=
2em
] {
37 & || tree
\textsubscript{0}\\
38 & || tree
\textsubscript{1}\\
39 & || tree
\textsubscript{\ldots}\\
40 & || tree
\textsubscript{n
}\\
42 \matrix (global)
[left=of main,memory,yshift=
2em
] {
43 & || task
\textsubscript{n
}\\
44 & || task
\textsubscript{\ldots}\\
45 & || task
\textsubscript{1}\\
46 & || task
\textsubscript{0}\\
48 \draw[dashed
] (main-
2-
2.north east) -- (heap-
1-
2.north west);
49 \draw[dashed
] (main-
3-
2.south east) -- (heap-
4-
2.south west);
51 \draw[dashed
] (main-
7-
2.north west) -- (global-
1-
2.north east);
52 \draw[dashed
] (main-
8-
2.south west) -- (global-
4-
2.south east);