[Haskell-cafe] thread safety, IO arrays, and IO refs

Edward Z. Yang ezyang at MIT.EDU
Fri Dec 31 11:28:55 CET 2010


If you need multithreaded mutable arrays, TArray may be
a better choice, as the underlying stm implementation will manage locking
for you.  (The current implementation isn't terribly efficient, but when
it gets better you'll get it for free too :-)

http://hackage.haskell.org/packages/archive/stm/2.2.0.1/doc/html/Control-Concurrent-STM-TArray.html

Edward



More information about the Haskell-Cafe mailing list