Changes between Initial Version and Version 2 of Ticket #2868


Ignore:
Timestamp:
Dec 10, 2008 11:14:40 AM (7 years ago)
Author:
simonmar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2868

    • Property Owner set to simonmar
    • Property Difficulty changed from to Easy (1 hr)
    • Property Operating System changed from Linux to Unknown/Multiple
    • Property Milestone changed from to 6.10.2
  • Ticket #2868 – Description

    initial v2  
    11The following Wombat program is from "A Tutorial on Parallel and Concurrent Programming in Haskell". It does not work as expected on my computer (Core(TM)2 Quad  CPU). Only one core is used when I watch by "mpstat -P ALL 1 200". I compile and run by:
     2{{{
    23ghc --make -threaded wombat.hs
    34./wombat +RTS -N4
    4 
     5}}}
    56and the result is:
     7{{{
    68par sum: 119201850
    79par time: 20.932636 seconds.
    810seq sum: 119201850
    911seq time: 20.926783 seconds.
    10 
     12}}}
    1113Please check if is is a bug.
    1214
     15{{{
    1316---- wombat.hs ----
    1417import System.Time
     
    6063                putStrLn ("par sum: " ++ show r2)
    6164                putStrLn ("par time: " ++ show (secDiff t0 t1) ++ " seconds.")
    62  
     65}}}