[Haskell-cafe] FFI and concurrency
bulat.ziganshin at gmail.com
Fri Sep 10 06:44:13 EDT 2010
Friday, September 10, 2010, 2:25:58 PM, you wrote:
just forkIO in threaded RTS works for me. try:
main = do forkIO 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 at haskell.org
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe