What is the difference between task, process, application, and thread?

Process - every instance of an application being executed is called as process. You execute same application two times, it will create 2 processes.

Application - is generalized term of a process.

Task - can have one or more applications in it. 

eg: task of sending a message : we will start with message application, lets say i want to attach a photo to my message, then i will open gallery application also. In this case my task has got two applications, messaging and gallery application.

Thread - theoretically thread is a light weight process, or part of process.Practically thread is dispatch-able unit to CPU, and it is internal part of a process. With out a thread in your program it is difficult to execute your application.application. That's why by default every process will have at least one thread created by Operating system.

No comments:

Post a Comment