HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Performance/Concurrency

< Performance

Categories: Performance | Parallel | Concurrency

This page is just a start.

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.

Retrieved from "http://haskell.org/haskellwiki/Performance/Concurrency"

This page has been accessed 716 times. This page was last modified 19:18, 30 November 2007. Recent content is available under a simple permissive license.