1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

What is the difference between a computer process and thread?

Discussion in 'Engineering Concepts' started by aspguy, May 16, 2008.

  1. aspguy

    aspguy New Member

    Joined:
    May 2, 2005
    Messages:
    59
    Likes Received:
    1
    Trophy Points:
    0
    What is the difference between a computer process and thread?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    By definition process will execute the threads(set of instructions), which may contain multiple threads but the other way is not true.

    Also different processes can't work under same memory location i.e. threads ca share resource but sharing of processes resources is not that easy.
     
  3. mialuzzatto

    mialuzzatto New Member

    Joined:
    Aug 5, 2015
    Messages:
    122
    Likes Received:
    4
    Trophy Points:
    0
    Occupation:
    Work at https://www.idevelopersquare.com
    Location:
    Waltham, MA, USA
    Home Page:
    Hello,

    Threads are used for small tasks, whereas processes are used for more 'heavyweight' tasks – basically the execution of applications. Another difference between a thread and a process is that threads within the same process share the same address space, whereas different processes do not.
     
  4. tutorsweb

    tutorsweb Member

    Joined:
    Oct 12, 2015
    Messages:
    53
    Likes Received:
    1
    Trophy Points:
    8
    Occupation:
    www.tutorsweb.com
    Location:
    hyderabad
    Home Page:
    A process is a program in execution, whereas a thread is a path of execution within a process. Processes are generally used to execute large, ‘heavyweight’ jobs such as running different applications, while threads are used to carry out much smaller or ‘lightweight’ jobs such as auto saving a document in a program, downloading files, etc.
     

Share This Page