4 Dec
2010
4 Dec
'10
12:33 a.m.
Hi! On Fri, Dec 3, 2010 at 4:13 PM, Simon Marlow <marlowsd@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. Mitar