lotus



previous page: 6.1. Architectural differences (Programming threads)
  
page up: Threads Programming FAQ
  
next page: 6.3. Potential problems with functionality (Programming threads)

6.2. Performance differences (Programming threads)




Description

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

6.2. Performance differences (Programming threads)

In terms of context switch time, user-space threads are the fastest,
with two-level threads coming next (all other things being equal).
However, if you have a multiprocessor, user-level threads can only be
run on a single CPU, while both two-level and pure kernel-supported
threads can be run on multiple CPUs simultaneously.

 

Continue to:













TOP
previous page: 6.1. Architectural differences (Programming threads)
  
page up: Threads Programming FAQ
  
next page: 6.3. Potential problems with functionality (Programming threads)