Proposal: Add tryReadChan to Chan
mmitar at gmail.com
Fri Dec 3 17:33:27 CET 2010
On Fri, Dec 3, 2010 at 4:13 PM, Simon Marlow <marlowsd at gmail.com> wrote:
> If you have many threads beating on the same Chan, then in that case the STM
> version may be a lot slower because it doesn't have the single-wakeup
> property that MVars have. That's the tradeoff.
Hm, in fact (for my application) I have mostly one reader and one
writer for every Chan (or maybe just a few). I am using Chans to
communicate between threads. So in most cases two threads communicate
over one Chan.
More information about the Libraries