Friday, 4 September 2015

What is the difference between Process and Thread?

           A process is a self contained execution environment and it can be seen as a program or application whereas Thread is a single task of execution within the process. Java run time environment runs as a single process which contains different classes and programs as processes. Thread can be called lightweight process. Thread requires less resources to create and exists in the process, thread shares the process resources.

No comments:

Post a Comment