Thursday, 4 July 2013

Difference between Process and Threads

A Process is an instance of an running application. Thread is the Execution part of the process.

A Process can have multiple threads, But atleast it should have one thread.Thread is always running in Process Context

Let we take a real time example :

When we launch a Application Chrome Browser we can see the instance of that application running as Process in TaskManager.  Now this Process which is an instance of an application Chrome Browser.

If we add a two tabs in that browser , we can see a multiple threads are created under the process of that chrome browser. Each tab creates own Thread.

No comments:

Post a Comment