CSAPP-review

process and thread

  • process:
    • process context + code + stack
    • thread + code, data, kernel context
  • thread:
    • Each thread has its own logical control flow Each thread has its own logical control flow
    • Each thread shares the same code, data and kernel context
    • Each thread has its own stack for local variables

32bit machine and 64 bit machine

virtual memory

  • idea: cache