Saturday, January 19, 2013

Difference between Process and Thread



To understand process and thread, lets take a example of MSWord.

When you click on MSWord icon, a MSWord file open. This is the process . When MSWord file open, you can do multiple operation at same time. Ex – print command, typing on the file etc. This is the thread .

Process

Process is a programm which we execute. We use process for a heavy weight task because a process can have multiple threads.

Thread

Thread is nothing, it is the part of process. A process run at least one thread (main thread). A process can have multiple threads. A thread is generally used for light weight talk.

No comments:

Post a Comment