Difference between Process Image and Multi Thread Process image

1. Process Image :
Process image is an executable file required during the execution of any process. It consists of several segments related to the execution of the process.
Following are the contents of the process image –

1. Process Control Block
2. Stack
3. Data
4. Code 

1. Multi Thread Process Image :
Multi thread process image is an executable file required during the execution of any thread. It consists of several segments related to the execution of the thread.
Following are the contents of the multi thread process image –

1. Process Control Block
2. Thread Control Block
3. Stack
4. Data
5. Code 



Difference between Process Image and Multi Thread Process image :



PROCESS IMAGE MULTI THREAD PROCESS IMAGE
It is an executable file required during the execution of a process. It is an executable file required during the execution of a thread.
It consists of total four segments. It consists of 2 segments for each thread and 3 common segments.
Creation of process image takes more time. Creation of single thread image takes less time.
Switching between two process images takes more time. Switching between two thread images takes less time.
Different process share different memory and different images. Common address space in multi thread process image is shared by all threads.
It used user address space. It uses common address space.
Communication between process images is difficult. Communication between two thread images is simple.
Single control block is used in process image. One control block is used for parent process and one each for threads.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.