What is the difference between a process and a thread?

TLDR

Process means a program is in execution, whereas thread means a segment of a process.

Further Explained

Process’s take much longer to terminate compared to threads. A process also takes longer to create while a thread takes a much shorter time. Threads share memory and a process is mostly isolated. There is also something called multithreading where there are multiply threads of execution within an operating system. This means that two or means threads of a single processor are executing at the same time.

More Reading

--

--