Changes between Version 10 and Version 11 of Commentary/Rts/Scheduler


Ignore:
Timestamp:
Oct 11, 2006 2:26:18 PM (8 years ago)
Author:
simonmar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Rts/Scheduler

    v10 v11  
    2323We assume that the OS provides some kind of native threads, and for 
    2424SMP parallelism we assume that the OS will schedule multiple OS 
    25 threads across the available CPUs.   
     25threads across the available CPUs. 
     26 
     27OS threads are only used by the runtime for two reasons: 
     28 
     29 * To support non-blocking foreign calls: a foreign call 
     30   should not block the other Haskell threads in the system from 
     31   running, and using OS threads is the only way to ensure that. 
     32 
     33 * To support SMP parallelism. 
     34 
     35Haskell threads are much lighter-weight (at least 100x) than OS threads. 
    2636 
    2737When running on an SMP, we use a fixed number of OS threads for