Open In App

Difference between Process Image and Multi Thread Process image

Improve
Improve
Like Article
Like
Save
Share
Report

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 

 

2. 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 processes share different memory and different images. Common address space in multi thread process image is shared by all threads.
It uses 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.

Last Updated : 14 Mar, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads