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,162

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,

<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