From 4078a951d6870205aad8935b7c794bab08060816 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Mon, 5 Mar 2007 16:09:21 +0000 Subject: [PATCH] expand docs for forkOS --- Control/Concurrent.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 1.7.10.4