[Haskell-cafe] Parallel parsing & multicore

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Sep 10 01:06:40 EDT 2009

Hello Anakim,

Wednesday, September 9, 2009, 11:58:58 PM, you wrote:

> foresee. I guess a possible solution would be to base parMap on
> different 'par' primitive; one that sparks a number of computations
> equal to the number of available OS threads and then blocks until at
> least one of them is done.

actually you should ask RTS -N value, that should be available via internal
RTS structures. and then user, optionally, may link in a code that
sets RTS -N to the number of hardware threads

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

More information about the Haskell-Cafe mailing list