X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fparallel.xml;h=8b5abdbd4c949fa987d57be49dce3cfde78cb3e8;hb=0093a2827f6b4007c4fcb298a559c9b7dd17aec1;hp=fc7ca94c26fea34d3258ccdc5027730b7232c1a4;hpb=6ba49a2db7549b7a14f1aafa4f57934098dd8240;p=ghc-hetmet.git diff --git a/docs/users_guide/parallel.xml b/docs/users_guide/parallel.xml index fc7ca94..8b5abdb 100644 --- a/docs/users_guide/parallel.xml +++ b/docs/users_guide/parallel.xml @@ -5,7 +5,7 @@ GHC implements some major extensions to Haskell to support - concurrent and parallel programming. Let us first etablish terminology: + concurrent and parallel programming. Let us first establish terminology: Parallelism means running a Haskell program on multiple processors, with the goal of improving @@ -38,7 +38,7 @@ To the programmer, Concurrent Haskell introduces no new language constructs; rather, it appears simply as a library, + url="../libraries/base/Control-Concurrent.html"> Control.Concurrent. The functions exported by this library include: @@ -62,7 +62,7 @@ the FFI with concurrency. it. The main library you need to use STM is + url="../libraries/stm/Control-Concurrent-STM.html"> Control.Concurrent.STM. The main features supported are these: Atomic blocks. @@ -83,7 +83,7 @@ All these features are described in the papers mentioned earlier. By default GHC runs your program on one processor; if you want it to run in parallel you must link your program with the , and run it with the RTS - option; see ). + option; see ). The runtime will schedule the running Haskell threads among the available OS threads, running as many in parallel as you specified with the