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 6 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

Suggestions for Assignment #9:

  • Pick one option and try it out!
    • Networking: try to print a string containing only the first line of the request, and then get the hostname
    • Operating Systems: 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):