What is the difference between thread and process

Q

What is the difference between thread and process?

✍: Guest

A

A thread is a path of execution that run on CPU, a process is a collection of threads that share the same virtual memory. A process has at least one thread of execution, and a thread always run in a process context.
Note:- Its difficult to cover threading interview question in this small chapter. These questions can take only to a basic level. If you are attending interviews where people are looking for threading specialist, try to get deeper in to synchronization issues as that's the important point they will stress.

2007-10-22, 4612👍, 0💬