[Haskell-cafe] FFI and concurrency

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Sep 10 06:44:13 EDT 2010

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

> 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
> http://www.haskell.org/mailman/listinfo/haskell-cafe

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list