|
Answer» PROCESS: It is basically a program that is currently under execution by one or more threads. It is a very important part of the modern-day OS.
Thread: It is a path of execution that is composed of the program counter, thread id, stack, and set of registers within the process. | Process | Thread |
|---|
| It is a computer program that is under execution. | It is the COMPONENT or entity of the process that is the smallest execution unit. | | These are heavy-weight operators. | These are lightweight operators. | | It has its own memory space. | It USES the memory of the process they belong to. | | It is more difficult to create a process as compared to creating a thread. | It is easier to create a thread as compared to creating a process. | | It requires more resources as compared to thread. | It requires fewer resources as compared to processes. | | It takes more time to create and terminate a process as compared to a thread. | It takes LESS time to create and terminate a thread as compared to a process. | | It usually run-in separate memory space. | It usually run-in SHARED memory space. | | It does not share data. | It shares data with each other. | | It can be divided into multiple threads. | It can’t be further subdivided. |
|