Discussion in 'Engineering Concepts' started by aspguy, May 16, 2008.
What is the difference between a computer process and thread?
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.
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.
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.
Separate names with a comma.