Thread (computing) - How Threads Differ From Processes

How Threads Differ From Processes

Threads differ from traditional multitasking operating system processes in that:

  • processes are typically independent, while threads exist as subsets of a process
  • processes carry considerably more state information than threads, whereas multiple threads within a process share process state as well as memory and other resources
  • processes have separate address spaces, whereas threads share their address space
  • processes interact only through system-provided inter-process communication mechanisms
  • context switching between threads in the same process is typically faster than context switching between processes.

Systems like Windows NT and OS/2 are said to have "cheap" threads and "expensive" processes; in other operating systems there is not so great a difference except the cost of address space switch which implies a TLB flush.

Read more about this topic:  Thread (computing)

Famous quotes containing the words threads, differ and/or processes:

    All is waste and worthless, till
    Arrives the selecting will,
    And, out of slime and chaos, Wit
    Draws the threads of fair and fit.
    Ralph Waldo Emerson (1803–1882)

    Decadence is a difficult word to use since it has become little more than a term of abuse applied by critics to anything they do not yet understand or which seems to differ from their moral concepts.
    Ernest Hemingway (1899–1961)

    All the followers of science are fully persuaded that the processes of investigation, if only pushed far enough, will give one certain solution to each question to which they can be applied.... This great law is embodied in the conception of truth and reality. The opinion which is fated to be ultimately agreed to by all who investigate is what we mean by the truth, and the object represented in this opinion is the real.
    Charles Sanders Peirce (1839–1914)