Thursday, January 13, 2011

Process Thread Task

Process vs. Thread
  • Processes are typically independent, while threads exist as subsets of a process.
  • Processes have separate address spaces, whereas threads share their address space.
  • Processes carry considerate state information (Execution context: program counter, stack pointer, data registers; Code; Data; Stack), whereas multiple threads within a process share text/data segment.
  • Processes interact only through inter-process communication, whereas threads can directly communicate with other threads of their process.

No comments: