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,
<b>Process</b>
In simple terms, a process is a sequnce of steps under execution.
Each process provides the resources needed to execute a program.
A process has a virtual address space, executable code, open handles to system objects, a security context, a unique process identifier, environment variables, a base priority, minimum and maximum working set sizes, and at least one thread of execution.
Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads.
<b>Thread</b>
A thread is a program's path of execution
In other words, a thread is the entity within a process that can be scheduled for execution.
All threads of a process share its virtual address space and system resources.
In addition, each thread maintains exception handlers, a scheduling priority, thread local storage, a unique thread identifier, and a set of structures the system will use to save the thread context until it is scheduled.
For more information on threads, refer this link..
http://java.sun.com/docs/books/tutorial/essential/threads/definition.html
Hope this helps.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 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.