On Fri, Dec 19, 2008 at 3:16 PM, Paul Keir <[email protected]> wrote:
> can I not expect each thread to run on a separate core?

Try moving 'fibs' inside 'heavyTask', like

heavytask m = putMVar m $! (let fibs = 0 : 1 : zipWith (+) fibs (tail
fibs) in (fibs !! 100000))

Maybe this may trick the compiler into not sharing fibs.

-- 
Felipe.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to