Difference between revisions of "Concurrency demos"

From HaskellWiki
Jump to: navigation, search
(Added link to Haskell/Javascript concurrency demo)
Line 13: Line 13:
 
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/ghc-regress/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/ghc-regress/concurrent/should_run/ concurrency regression tests]. In particular, they show the use of <hask>MVars</hask> and <hask>forkIO</hask>.
  +
  +
== Proposed updates ==
  +
  +
The base 3.0.3.1 package's Control.Concurrent.QSem and QSemN are not exception safe. The [[SafeConcurrent]] has the proposed replacement code.
   
 
== Other examples ==
 
== Other examples ==

Revision as of 10:14, 11 April 2009

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.

Proposed updates

The base 3.0.3.1 package's Control.Concurrent.QSem and QSemN are not exception safe. The SafeConcurrent has the proposed replacement code.

Other examples