Archive

Posts Tagged ‘process’

Threads vs. Processes

May 25th, 2010

Threads and Processes helps in concurrent execution of any application.

Process:

  • an architectural construct : can affect the architecture of an application.
  • processes are independend execution units
  • they have their own state, address space
  • use interprocess communication to communicate between threads

Threads:

  • coding construct : doesn’t affect the architecture.
  • a single process might contain multiple threds
  • all threds within a process share process’s address space and state
  • threads can communicate with each other directly

Java ,