Skip to Content
author's profile photo Former Member
Former Member

what is the diff between thread,task and process clearly

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Feb 28, 2006 at 09:11 PM

    Hi,

    Threads:

    A thread is a single sequential flow of control within a program. It can not run its own. It is not a program.

    Threads enhance performance and functionality in various programming languages .

    Tasks: Are nothin gbut "To do " Items. So we can execute different tasks with the use of Threads.

    Process:

    Process is nothing but unit of work.

    Threads share memory inside a process, vice-versa is not true.

    Linux developers are using the word "Task" not thread nor Process.

    So I think , there is not much difference between Process and the task. But there is a difference between process and the thread.

    For more info about threads , go thru following link.

    http://www.faqs.org/faqs/threads-faq/part1/

    Hope this helps,

    Regards,

    Moorthy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 01, 2006 at 09:25 AM

    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 Process 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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2006 at 06:20 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 23, 2006 at 11:39 AM

    Hi

    Thread in Java->

    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to have multiple threads of execution running concurrently

    Task in ABAP->With a task, you generally process an actual object of an object class, for example you create a customer master record. A task consists of a set of task functions, such as "Save", "Delete" or "Select".

    Process in ABAP ->It is a set of steps which are done to perform a specified function.

    I hope this will help to solve your problem.

    Thanks

    Mrutyunjaya Tripathy

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 09:58 AM

    Hi Guruvulu,

    Kindly close the thread if your doubt has been cleared. Else do revert for further queries.

    Regards,

    Pooja.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.