1. Home
  2. Explore
  3. Computer Science
  4. Memory Management Overview

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Memory Management Overview

  • 37Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Memory Management Fundamentals
The hardware component that translates logical addresses into physical addresses is the
.

37 questions

  1. 1
    The hardware component that translates logical addresses into physical addresses is the
    _____
    .
    Hint

    Think about the device that performs address relocation.

    Answer

    memory management unit (MMU)

  2. 2
    The register that holds the starting address of a process in memory is called the
    _____
    register.
    Hint

    This register works with the limit register to define a process's memory range.

    Answer

    base

  3. 3
    In hardware address protection, a memory access is considered valid if the logical address is between
    _____
    and base + limit.
    Hint

    The lower bound check uses this register.

    Answer

    base

  4. 4
    When a program's addresses are generated at compile time and never change, this is known as
    _____
    binding.
    Hint

    This binding happens before the program is run.

    Answer

    compile time

  5. 5
    The difference between a logical address and a physical address is resolved by the
    _____
    .
    Hint

    This hardware component performs address translation.

    Answer

    memory management unit (MMU)

  6. 6
    When a process is loaded into memory, its relocatable addresses are adjusted to the actual load address at
    _____
    time.
    Hint

    This type of binding occurs when the program is brought into memory.

    Answer

    load

  7. 7
    In execution-time binding, addresses can be changed even after the process is running, which requires support from the
    _____
    .
    Hint

    The hardware unit that performs dynamic translation.

    Answer

    MMU (or memory management unit)

  8. 8
    The CPU can only directly access
    _____
    and main memory.
    Hint

    No other storage is directly accessible.

    Answer

    its registers

  9. 9
    A dynamically loaded library that is linked at runtime is called a
    _____
    .
    Hint

    Common on Windows systems; file extension .dll.

    Answer

    DLL (dynamic-link library)

  10. 10
    In swapping, when a process is moved from main memory to backing store, it is said to be
    _____
    out.
    Hint

    Opposite of 'swapped in'.

    Answer

    swapped

  11. 11
    The main disadvantage of swapping is that it can be slow because it involves
    _____
    .
    Hint

    Moving data to and from a slower storage medium.

    Answer

    disk I/O (or I/O operations)

  12. 12
    On mobile operating systems, instead of swapping, apps are often
    _____
    and their state saved.
    Hint

    The app is killed, but its context is preserved.

    Answer

    terminated

  13. 13
    In contiguous memory allocation, each process occupies a single
    _____
    block of memory.
    Hint

    No gaps within the process's allocated region.

    Answer

    contiguous

  14. 14
    The memory allocation strategy that selects the first hole large enough to fit a process is called
    _____
    -fit.
    Hint

    It scans memory from the beginning.

    Answer

    first

  15. 15
    The allocation strategy that picks the smallest hole that is still large enough to fit the process is called
    _____
    -fit.
    Hint

    It minimizes wasted space.

    Answer

    best

  16. 16
    The strategy that selects the largest available hole to place a process, aiming to leave a big leftover, is called
    _____
    -fit.
    Hint

    Opposite of best-fit.

    Answer

    worst

  17. 17
    The condition where total free memory is sufficient but not contiguous is known as
    _____
    fragmentation.
    Hint

    The free memory is fragmented into separate blocks.

    Answer

    external

  18. 18
    Wasted memory inside an allocated block due to rounding up the process size to the next allocation unit is called
    _____
    fragmentation.
    Hint

    The waste is within the partition, not outside.

    Answer

    internal

  19. 19
    The technique of moving all processes together in memory to eliminate external fragmentation is called
    _____
    .
    Hint

    Similar to defragmentation on a hard disk.

    Answer

    compaction

  20. 20
    In segmentation, a process is divided into logical units called
    _____
    .
    Hint

    Each segment corresponds to a logical part like code, data, stack.

    Answer

    segments

  21. 21
    In segmentation, the logical address consists of a segment number and a
    _____
    .
    Hint

    This indicates the location within the segment.

    Answer

    offset

  22. 22
    The segment table contains the base and
    _____
    for each segment.
    Hint

    This defines the length of the segment.

    Answer

    limit

  23. 23
    In paging, physical memory is divided into fixed-size blocks called
    _____
    .
    Hint

    The term for the physical chunks.

    Answer

    frames

  24. 24
    In paging, logical memory is divided into fixed-size blocks called
    _____
    .
    Hint

    The term for the logical chunks.

    Answer

    pages

  25. 25
    The data structure that maps logical page numbers to physical frame numbers is called the
    _____
    .
    Hint

    Kept per process, often in memory.

    Answer

    page table

  26. 26
    The average internal fragmentation due to paging is approximately
    _____
    of a page per process.
    Hint

    Due to the last page rarely being full.

    Answer

    half

  27. 27
    A list of available frames in memory that can be allocated to processes is called the
    _____
    .
    Hint

    Used during process creation.

    Answer

    free frame list

  28. 28
    The register that points to the base of the page table in memory is called the
    _____
    .
    Hint

    Its acronym is PTBR.

    Answer

    page table base register (PTBR)

  29. 29
    The register that holds the size of the page table is called the
    _____
    .
    Hint

    Acronym PTLR.

    Answer

    page table length register (PTLR)

  30. 30
    With paging, every memory access requires two memory accesses: one to the
    _____
    and one to the actual memory location.
    Hint

    The first access is to find the frame number.

    Answer

    page table

  31. 31
    A special fast cache that stores recent page-to-frame translations is called the
    _____
    .
    Hint

    It uses associative memory.

    Answer

    translation lookaside buffer (TLB)

  32. 32
    The TLB performs a
    _____
    search, allowing all entries to be checked simultaneously.
    Hint

    This is faster than sequential search.

    Answer

    parallel

  33. 33
    The fraction of memory references that are found in the TLB is called the
    _____
    .
    Hint

    Often denoted by alpha.

    Answer

    hit ratio

  34. 34
    If the TLB hit ratio is 80%, and TLB search takes 20 ns while memory access takes 100 ns, the effective memory access time is
    _____
    ns.
    Hint

    Use the formula from the lecture: EAT = hit * (TLB + memory) + (1-hit) * (TLB + 2*memory).

    Answer

    120

  35. 35
    In a page table entry, the bit that indicates whether a page is currently in memory and belongs to the process is called the
    _____
    bit.
    Hint

    Often one bit; if 0, the page is not available.

    Answer

    valid/invalid (or valid)

  36. 36
    Code that can be shared among multiple processes without modification, such as a spell checker, is called
    _____
    code.
    Hint

    It does not modify itself and uses separate data per process.

    Answer

    reentrant

  37. 37
    In paging, to protect memory, the page table can include
    _____
    bits to specify read, write, or execute permissions.
    Hint

    Similar to file permissions.

    Answer

    protection

1 of 37
Question 1 of 37

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent