Personal tools

Concurrency demos

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Examples: Move link)
Current revision (16:18, 16 March 2011) (edit) (undo)
(category parallel)
 
(2 intermediate revisions not shown.)
Line 14: Line 14:
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 ==
 +
* [[/Haskell-Javascript concurrency|Haskell -> Javascript: Pseudo-concurrent threads in web browser]]
 +
 +
[[Category:Parallel]]
[[Category:Tutorials]]
[[Category:Tutorials]]
[[Category:Code]]
[[Category:Code]]

Current revision

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

Contents

1 Examples

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

3 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.

4 Other examples