Concurrency demos
From HaskellWiki
(Difference between revisions)
m (→Examples) |
(→Examples) |
||
| Line 6: | Line 6: | ||
* [[/Graceful exit|Signal that you want to gracefully exit another thread]] | * [[/Graceful exit|Signal that you want to gracefully exit another thread]] | ||
* [[/Two reader threads|Passing messages across a single chan to two readers]] | * [[/Two reader threads|Passing messages across a single chan to two readers]] | ||
| + | * [[/Simple producer and consumer|Passing IO events lazily from a producer to a consumer thread]] | ||
== More examples == | == More examples == | ||
Revision as of 08:47, 29 June 2007
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 readers
- Passing IO events lazily from a producer to a consumer thread
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
