Google News
logo
IOS - Interview Questions
What is the difference between a process and a thread?
Process :
 
* Process is a heavy weight process.
* Process is a separate program that has separate memory,data,resources ect.
* Process are created using fork() method.
* Context switch between the process is time consuming.

Example : Say, opening any browser (mozilla, Chrome, IE). At this point new process will start to execute.
 
Threads :
 
* Threads are light weight processes.Threads are bundled inside the process.
* Threads have a shared memory,data,resources,files etc.
* Threads are created using clone() method.
* Context switch between the threads are not much time consuming as Process.
Advertisement