
10 Sep
2010
10 Sep
'10
6:44 a.m.
Hello Johannes, Friday, September 10, 2010, 2:25:58 PM, you wrote: just forkIO in threaded RTS works for me. try: main = do forkIO expensiveCalc forkIO expensiveCalc forkIO expensiveCalc expensiveCalc
What's the story with FFI calls and concurrency?
I have an expensive calculation performed by some C function, which I call from Haskell land. (This works like a charm.)
I have several cores available. How could I run several of these calculations in parallel?
Thanks, Johannes.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com