
9 Dec
2009
9 Dec
'09
7:55 p.m.
Jon Harrop wrote:
On Tuesday 08 December 2009 21:37:41 Daniel Fischer wrote:
Am Dienstag 08 Dezember 2009 21:56:45 schrieb Jon Harrop:
Can you mutate different parts of the same array from different threads in parallel using GHC? Someone once told me this was possible but I cannot see how...
You can (take a look at Control.Concurrent), but very probably ***You really shouldn't***, so I won't elaborate.
What would you want to do that for?
Efficiency, e.g. parallel quicksort.
So why not look at Data Parallel Haskell: http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/