lotus



previous page: 3. What are threads? (Programming)
  
page up: Threads Programming FAQ
  
next page: 3.2. A little history (Programming threads)

3.1. Why are threads interesting? (Programming)




Description

This article is from the Threads Programming FAQ, by Bryan O'Sullivan bos@serpentine.com with numerous contributions by others.

3.1. Why are threads interesting? (Programming)

A context switch between two threads in a single process is
"considerably" cheaper than a context switch between two processes. In
addition, the fact that all data except for stack and registers are
shared between threads makes them a natural vehicle for expressing
tasks that can be broken down into subtasks that can be run
cooperatively.

 

Continue to:













TOP
previous page: 3. What are threads? (Programming)
  
page up: Threads Programming FAQ
  
next page: 3.2. A little history (Programming threads)