on ‎2006 Feb 28 2:53 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.