How do you differentiate between process and thread?
Process | Thread |
---|---|
The process is admitted as an occurrence of the computer program that is being executed. | The thread is known as the component of the process that is considered the smallest execution unit. |
The process is not lightweight | Threads are light-weighted |
Creation of process takes more time | Creation of thread takes less time |
The process does not share the data | Threads share the data with each other |
In context switching, the process takes more time. | In context switching, the thread takes less time. |
BY Best Interview Question ON 18 Jan 2022