runhaskell a parallel program
marlowsd at gmail.com
Thu May 7 09:27:04 EDT 2009
On 07/05/2009 11:37, Bulat Ziganshin wrote:
> Hello Neil,
> Thursday, May 7, 2009, 2:27:34 PM, you wrote:
>> This is a test framework that spawns system commands. My guess is the
>> Haskell accounts for a few milliseconds of execution per hour. Running
>> two system commands in parallel gives a massive boost.
>> A related question I wanted to ask. Is there any way to have my
>> Haskell program support -j3, which is equivalent to +RTS -N3 -RTS. At
> my own program creates a lot of parallel threads without using -N
> the secret is using of forkOS plus C code in threads. since you
> spend time in system calls this should also work for you
Are you sure you need forkOS, and not just forkIO? Why?
More information about the Glasgow-haskell-users