Chapter 30 Flashcards

1
Q

What are 3 methods of memory management

A
  1. Dynamic Loading
  2. Dynamic Linking
  3. Overlays
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are 5 types of memory hierarchy

A
  1. Extremely fast, expensive (e.g. registers)
  2. Small, Very fast, expensive and volatile cache (e.g. cache)
  3. Hundreds of megabytes of medium-speed, medium-price, volatile main memory (e.g. main memory)
  4. Hundreds of gigabytes of slow, cheap and non-volatile secondary storage (e.g. secondary storage)
  5. Internet storage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is memory management

A

Keeping track of free used memory space. It is also called free space management.

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

Who do swapping out and swapping in

A

Memory manager

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

What are the steps of making source code executable

A

Compile/assembly –> Link –> Load –> Execute

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

What is object code

A

It is in the form of instruction for machine language

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

What is address binding

A

Binding instructions and data to memory addresses

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

Does there can be load time, compile time and execution time binding

A

Yes

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

What is compile time binding

A

If we know at compile time where the process will reside in memory.

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

What is load time binding

A

If the location of a process in memory is not known at compile time then it will be load time binding.

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

What is execution time binding

A

If the process can be moved from one memory region to another during its execution, then it is execution time binding.

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

What is logical address

A

An address generated by the process/CPU; refers to an instruction or data in the process.

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

What is physical address

A

An address for a main memory location where instruction or data resides.

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

What is memory management unit (MMU) in CPU

A

The run-time mapping from logical to physical addresses is done by a piece of the CPU hardware, called the memory management unit (MMU).

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

What is logical address space

A

Set of logical addresses a process can generate, it lies on logical address space.

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

What is physical address space

A

The total physical addresses as a result of logical addresses compromise the space of physical address space.

17
Q

Does physical address translated from logical address

A

Yes

18
Q

What is relocation register

A

The base register is called the relocation register.

19
Q

What is instruction pointer

A

In microprocessor, the logical address of the next instruction is specified by the value of instruction pointer (IP).

20
Q

What is dynamic loading

A

With dynamic loading, a routine is not loaded into the main memory until it is called. So only relevant section of code is loaded when required/called.

21
Q

What are advantages of dynamic loading

A
  • Potentially less time needed to load a program

- Potentially less memory space needed

22
Q

What are disadvantages of dynamic loading

A

Run-time activity

23
Q

What is static linking

A

In static linking, system language libraries are linked at compile time.

24
Q

What is dynamic linking

A

In dynamic linking, linking is postponed until run-time.

25
Q

What is role of stub in dynamic linking

A

A library call is replaced by a piece of code, called stub, which is used to locate memory-resident library routine.

26
Q

Does gcc compiler generates dynamic linking by default

A

Yes