What is the difference between a process and a thread?

3 stars If you are short on time, start with this one.

In one or two sentences
A process is the unit the OS gives resources to. A thread is a flow of execution inside it. Threads of one process share the same address space.

Think of your own answer first

Say it out loud, or type it below. What you type never leaves this device.

Follow-up questions

These are likely next questions from an interviewer. Think of your answer first, then press the button.

  1. 1 / 3

    What do threads share, and what does each keep?

Sources checked