[Haskell] Blocked STM & GC question

Ashley Yakeley ashley at semantic.org
Sat Sep 15 16:38:55 EDT 2007

If I have a thread that's blocked on an STM retry or TChan read, and 
none of its TVars are referenced elsewhere, will it get stopped and 

I have in mind a pump thread that eternally reads off a TChan and pushes 
the result to some function. If the TChan is forgotten elsewhere, will 
the permanently blocked thread still sit around using up some small 
amount of memory, or will it be reaped by the garbage collector?

Ashley Yakeley
Seattle WA

More information about the Haskell mailing list