#1889: Regression in concurrency performance from ghc 6.6 to 6.8
-----------------------------------------------+----------------------------
 Reporter:  dons                               |          Owner:  simonmar
     Type:  bug                                |         Status:  new     
 Priority:  normal                             |      Milestone:  6.8.3   
Component:  Runtime System                     |        Version:  6.8.1   
 Severity:  normal                             |     Resolution:          
 Keywords:  threads, concurrency, performance  |     Difficulty:  Unknown 
 Testcase:                                     |   Architecture:  Multiple
       Os:  Multiple                           |  
-----------------------------------------------+----------------------------
Comment (by simonmar):

 One more tip: when using `-threaded`, never use the main thread to do the
 real work.  Communication between the main thread and other `forkIO`'d
 threads is much much slower than between two `forkIO`'d threads, because
 the main thread is a "bound thread" (i.e. it has an OS thread to itself).
 This is perhaps the main reason that turning on `-threaded` will make the
 version of `threadring` above go much slower.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1889#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to