Interviews12 answers
What is the Difference between a process and a thread?
12 Answers
Threads are used for small tasks, whereas processes are used for more long running tasks.
Another difference between a thread and a process is that threads within the same process share the same address space, whereas different processes do .
Sanjay DwivediPosted Jul 20, 2017, 6:23 AM EDT
Thread is a part of process.
process is a kind execution of something in an application
Ayappan AlagesanPosted Feb 11, 2017, 8:46 PM EST
A process is an executing instance of an application. What does that mean? Well, for example, when you double-click the Microsoft Word icon, you start a process that runs Word. A thread is a path of execution within a process. Also, a process can contain multiple threads. When you start Word, the operating system creates a process and begins executing the primary thread of that process.
It’s important to note that a thread can do anything a process can do. But since a process can consist of multiple threads, a thread could be considered a ‘lightweight’ process. Thus, the essential difference between a thread and a process is the work that each one is used to accomplish. 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. This allows threads to read from and write to the same data structures and variables, and also facilitates communication between threads. Communication between processes – also known as IPC, or inter-process communication – is quite difficult and resource-intensive.
Ajay GandhiPosted Nov 20, 2015, 1:05 AM EST
Process can contain threads.
A group of process can create a thread.
Sreekanth ReddyPosted Jul 10, 2015, 11:02 PM EDT
1. Threads are light weight compare to process.
A process can contain a number of thread but a thread only belong to a single process
process can execute a thread but thread can not call a process
Pankaj Kumar ChoudharyPosted May 23, 2015, 3:23 PM EDT
process executes once at a time
threadss can execute more than once at a time.
Safayat ZisanPosted Apr 17, 2015, 1:13 PM EDT
Process will execute concurrently.
Threads will execute Parallel.
Process can execute threads. But Thread's can't execute process.
Process will work for long time operations, Threads will n't work.
Process can start automatically. we can't start thread automatically.
More over collection of Thread execution is a process
Maruthi PallamalliPosted Feb 10, 2015, 11:43 PM EST
1)Process is synchronous where as thread will be both synchronous and asynchronous .
2) Every process contain thread .
3) Process is heavyweight thread is light wait.
4) Process share environment using thread.
Ravi PrajapatiPosted Dec 15, 2014, 8:51 PM EST
http://www.quora.com/What-is-the-difference-between-a-process-and-a-thread
Munesh SharmaPosted Oct 9, 2014, 1:12 AM EDT
A process is the running image of a program loaded and executed in the system's memory; a thread is is the smallest unit of processing that can be scheduled by an operating system.
Every process has at last one thread (the main thread) that exists so to allow the process to run and perform its tasks.
Gaurav GuptaPosted Aug 27, 2014, 4:32 AM EDT
Both processes and threads are independent sequences of execution. The typical difference is that threads (of the same process) run in a shared memory space, while processes run in separate memory spaces.
Gaurav GuptaPosted Aug 27, 2014, 4:30 AM EDT
A process has its own address space. however, a thread shares the address space of the process with other threads running within that process...
Krishna Rajput SinghPosted Jul 17, 2014, 1:41 AM EDT









