Threads

From Dikapedia
Jump to: navigation, search

Related topics:




Threads are the smallest unit of processing that a scheduler can work, and can have the same resources such as memory, address space, open files. Also called "light weight processes (LWPs).


Threads vs Processes:

  • Threads
    • executing under the same process share the address space.
    • Communication between threads is very fast because they share same address space.
  • Processes
    • Processes do not share their address space.
    • Communication between process is quite difficult and resource intensive.