DSA Factory
All free lessons
Operating systems

Free Memory management lessons

7 lessons, about 1½ hours in all. Each teaches one idea with a visual, then gives you a problem or a few questions on it. Read the lessons here, then create a free account to practise and keep your progress.

Stage 0Contiguous memory

  1. Logical and physical addressesSeparate the addresses a program uses from the ones the hardware sees, and protect processes with base and limit.12 min
  2. Fitting processes into memoryPlace variable-sized requests into holes with first, best and worst fit, and meet fragmentation.14 min

Stage 1Paging

  1. PagingCut memory into fixed-size frames and programs into pages, and translate with a page table.14 min
  2. How big is a page table?Calculate the memory a page table takes, and see how page size trades table size against waste.12 min
  3. The TLB and effective access timeSee why paging doubles memory access cost without help, and how a small cache fixes most of it.13 min

Stage 2Beyond simple paging

  1. Multilevel page tablesPage the page table itself, so that unused parts of the address space need no table at all.14 min
  2. SegmentationSee memory from the programmer's view as named parts with their own sizes, and how segments are translated.12 min

All of Memory management is free

That’s the whole topic, from the first idea to the mastery stage, with no card needed. Create a free account to practise, keep your progress and carry on to the next topic.

Create your free account