From: Simon Marlow Date: Mon, 5 Mar 2007 16:09:21 +0000 (+0000) Subject: expand docs for forkOS X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=4078a951d6870205aad8935b7c794bab08060816;p=haskell-directory.git expand docs for forkOS --- diff --git a/Control/Concurrent.hs b/Control/Concurrent.hs index 1ce813c..45d2029 100644 --- a/Control/Concurrent.hs +++ b/Control/Concurrent.hs @@ -310,7 +310,11 @@ This means that you can use all kinds of foreign libraries from this thread Just to clarify, 'forkOS' is /only/ necessary if you need to associate a Haskell thread with a particular OS thread. It is not necessary if -you only need to make non-blocking foreign calls (see "Control.Concurrent#osthreads"). +you only need to make non-blocking foreign calls (see +"Control.Concurrent#osthreads"). Neither is it necessary if you want +to run threads in parallel on a multiprocessor: threads created with +'forkIO' will be shared out amongst the running CPUs (using GHC, +@-threaded@, and the @+RTS -N@ runtime option). -} forkOS :: IO () -> IO ThreadId