re: Explain like I'm five. What is a process and what is thread ? VIEW POST

  • Programs are like recipes. They are plans for how to do something.
  • Processes are like cooking. They are the activity of actually doing something.
    • Processes can be started or stopped
    • Multiple processes can be based off the same program
    • Each process requires some resources (CPU time and memory)
    • Processes do not share resources
  • Threads are like cooks. They are the actors who perform steps.
    • Every process has at least one thread.
    • Each thread requires some separate CPU time.
    • Threads inside a process can share (and screw up) each other's memory.
Code of Conduct Report abuse