cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

what is the diff between thread,task and process clearly

Former Member
0 Likes
1,164

hi, i have a doubt about difference between task , thread and process. please clarify my doubt with clear information, i am waiting for u r reply

View Entire Topic
Former Member
0 Likes

Hi Guruvulu,

<b>Threads</b> enhance performance and functionality by allowing a program to efficiently perform multiple <b>tasks</b> simultaneously. Task means any job that has to be done.

In the case of <i><b>common memory</b></i> <b>threads</b> naturally have shared data regions while it has to be specially created and initialized for <b>tasks</b>.

A <b>Process</b> is some job or task which is running in background.A process can have many threads.To perform a task faster we break the process in threads.

Creation of new <b>process</b> requires new resources and Address space whereas the <b>thread</b> can be created in the same address space of the process which not only saves space and resources but are also easy to create and delete,and many threads can exist in a process.

Regards,

Pooja.

Message was edited by: Pooja S

Yashpal
Active Contributor
0 Likes

Hi,

Threads uses the same address space ...means that the parent processs have a processID(in unix ) and if same application is open again a child is created i.e thread which have the same processid as that of parent but its own data ......so if the parent application is closed all the threads can be affected.....like in windows if u open many word document and close the first opened window all the others window may close because its a parent window.....while in proccess based system each application have there own address space and processid so each process data and state is independent of each other .....like in unix system......this techology have both pros and cons....

i thread based technology.......

pros...fast as no need create a address space so memory requirement is less

cons...possible of hang of system because ..one application can affect the state of second....like in windows machines,......

Process based technology.....

pros....safer as process are indpendent of each other ...can be used for large processing of data ...like in server.......linux,unix

cons....memory requirement is more as address space is allocated for each process.......

and task is the JOB to be done......

regards,

Yash