Lesson 25: Making Memories

Outline:

  1. Caution: avoid “fork bombs”
  2. Shells
    • many shell programs exist: bash, zsh, PowerShell, …
    • prompt-read-execute loop
    • see Lab 8 for relevant samples
  3. Storage and the memory hierarchy
  4. Cache overview
    • motivation: spatial/temporal locality
    • basic principles
  5. Cache types
    • direct-mapped
    • fully associative
    • set-associative

Our last two assignments:

Try getting started on these soon!

  • Networking (A8): try to print a string containing only the first line of the request, and then get the hostname
  • Operating Systems (A9): use fork to spawn a child process in a prompt-read-execute loop, and hard-code it to call ls

Reading assignment (to be completed by the next class):