Process Vs Thread

  • Process is a heavy weight running instance of a program.
  • A Process has its own memory space, runtime enivorment and process ID. One process can have multiple threads(It has atleast one main thread).
  • Processes must use interprocess communication to communicate with silbing processes.
  • Process is an architectural construct.

  • A thread is the smallest schedulable unit of execution in aWindows application.
  • A thread always is associated with a particular process.Threads runs the code inside the process and share the address space with other threads inside the process i.e share process handles.
  • Threads can directly communicate with other threads of its process.
  • Thread is coding construct.

No comments: