Free Online Flashcard Deck

6 Memory Management and Virtual Memory Free Online FlashCards

Study 6 Memory Management and Virtual Memory with 12 free online flashcards. Review key terms, definitions, and concepts with this interactive flashcard deck.

12 cards
01
Front

What are the main tasks of memory management?

Back

It tracks memory use, allocates and reclaims memory, translates addresses, and protects processes from one another.

02
Front

How does a process’s address space relate to physical memory?

Back

A process uses virtual addresses, which the memory-management unit translates into physical addresses in RAM. This abstraction lets programs work without knowing where data resides physically.

03
Front

Which regions commonly appear in a process’s address space?

Back

It commonly contains program code, global data, a heap for dynamically allocated memory, and a stack for function calls and local variables.

04
Front

How do threads’ address spaces differ from those of separate processes?

Back

Threads in one process typically share that process’s address space; separate processes normally have separate address spaces.

05
Front

At which two levels does memory allocation occur?

Back

A runtime allocator manages program-requested blocks and may request larger regions from the operating system. The operating system manages virtual-memory regions and physical page frames.

06
Front

What is external fragmentation?

Back

External fragmentation is free memory split into pieces too small to satisfy a request, even when the total free space may be sufficient.

07
Front

How does paging organize virtual and physical memory?

Back

Paging divides virtual address spaces into fixed-size pages and physical memory into same-sized page frames. Any available frame can hold a page, avoiding external fragmentation in physical-memory allocation.

08
Front

With 4 KiB pages, how is address 0x12345 divided?

Back

The virtual page number is 0x12, and the offset within that page is 0x345.

09
Front

What does the translation lookaside buffer do?

Back

The TLB caches recent address translations. A hit supplies a translation quickly; on a miss, the processor consults the page tables and may cache the result.

10
Front

How does segmentation organize an address space?

Back

Segmentation divides an address space into variable-sized logical regions, such as code, data, and stack. A segment’s base marks its start, and its limit gives its size.

11
Front

What does virtual memory allow the operating system to do?

Back

It lets an address space exceed the portion currently resident in RAM. Pages can be brought into RAM when needed, and mappings can also be backed by files.

12
Front

What happens when an access triggers a page fault?

Back

A valid access to a page not resident in RAM raises a page fault. The operating system may load the page, update the page table, and restart the instruction; an invalid or disallowed access instead causes an error or signal.