Processes & Threads

Image Credit: Wikipedia

Process

  • Instance of an Application
  • Consumes Memory & CPU Time
  • Scheduled by the OS
  • Can Contain Multiple Threads

Processes

Process States

Image Credit: Wikipedia

Thread

  • Smallest Sequence of Instructions
  • Scheduled by the OS
  • Runs on a Single Core
  • Starts With a Function Call
  • Can Share Memory with Other Threads

Threads