A process is an independent program in execution with its own memory space, resources, and system allocation. A thread is a smaller execution unit that exists within a process and shares the process's memory and resources with other threads. Processes provide isolation and stability, while threads enable efficient multitasking and parallel execution within the same application.
When you open a web browser, it runs as a process. Inside that browser process, multiple threads may handle tasks such as rendering web pages, downloading files, playing media, and responding to user actions simultaneously.
•Process
Independent execution unit
Has separate memory space
More secure and isolated
Slower context switching
•Thread
Lightweight execution unit
Shares memory with other threads
Faster communication
Faster context switching
A concise interview answer is: "A process is an independent program execution unit with its own memory and resources, while a thread is a lightweight execution unit within a process that shares the same memory and resources. Processes provide isolation, whereas threads improve concurrency and performance."
Last updated: 16 July 2026
Previous question: What is ForkJoinPool in Java?
Next question: What is ThreadLocal in Java?