Concurrency demos
From HaskellWiki
(Difference between revisions)
BrettGiles (Talk  contribs) m (Link) 
DonStewart (Talk  contribs) (fmt) 

Line 1:  Line 1:  
−  [[Category:Tutorials]] 
+  This page collects examples of concurrent and parallel programming in Haskell. 
−  [[Category:Code]] 
+  
+  == Examples == 

+  
+  * [[/Zeta Riemann's Zeta function approximation]] 

+  * [[/Graceful exitSignal that you want to gracefully exit another thread]] 

+  * [[/Two reader threadsPassing messages across a single chan to two reades]] 

+  
+  == More examples == 

A large range of small demonstration programs for using concurrent and 
A large range of small demonstration programs for using concurrent and 

parallel Haskell are in the Haskell [http://darcs.haskell.org/testsuite/tests/ghcregress/concurrent/should_run/ concurrency regression tests]. In particular, they show the use of <hask>MVars</hask> and <hask>forkIO</hask>. 
parallel Haskell are in the Haskell [http://darcs.haskell.org/testsuite/tests/ghcregress/concurrent/should_run/ concurrency regression tests]. In particular, they show the use of <hask>MVars</hask> and <hask>forkIO</hask>. 

−  *[[Concurrency demos/Zeta Riemann's Zeta function approximation]] 
+  [[Category:Tutorials]] 
−  +  [[Category:Code]] 

−  *[[Concurrency demos/Graceful exitSignal that you want to gracefully exit another thread]] 
Revision as of 01:56, 13 December 2006
This page collects examples of concurrent and parallel programming in Haskell.
1 Examples
 Riemann's Zeta function approximation
 Signal that you want to gracefully exit another thread
 Passing messages across a single chan to two reades
2 More examples
A large range of small demonstration programs for using concurrent and
parallel Haskell are in the Haskell concurrency regression tests. In particular, they show the use ofMVars
forkIO