Difference between revisions of "Concurrency demos"

From HaskellWiki
Jump to: navigation, search
(Examples)
(add link to chat server)
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]]
  +
* [[Chat_Server|Chat server - using a single channel for a variable number of readers]]
 
* [[/Simple producer and consumer|Passing IO events lazily from a producer to a consumer thread]]
 
* [[/Simple producer and consumer|Passing IO events lazily from a producer to a consumer thread]]
   

Revision as of 10:12, 6 July 2007

This page collects examples of concurrent and parallel programming in Haskell.

Examples

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 of MVars and forkIO.