Windows Memory and Stack Flashcards

1
Q

PEB

A

Process Environment Block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

TEB

A

Thread Environment Block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Program Image

A

The Program Image portion of memory is where the executable resides.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

.text section

A

containing the executable code/CPU instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

.data section

A

containing the program’s global data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

.rsrc section

A

contains non-executable resources, including icons, images, and strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

heap

A

dynamically allocated (e.g. malloc( )) portion of memory a program uses to store global variables. Unlike the stack, heap memory allocation must be managed by the application. In other words, that memory will remain allocated until it is freed by the program or the program itself terminates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

stack

A

the stack is used to allocate short-term storage for local (function/method) variables in an ordered manner and that memory is subsequently freed at the termination of the given function. Recall how a given process can have multiple threads. Each thread/function is allocated its own stack frame. The size of that stack frame is fixed after creation and the stack frame is deleted at the conclusion of the function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Stack structure

A

Last in First out

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name three memory models

A

flat, segmented, real-address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

bss

A

un-initialized data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly