[Haskell-cafe] Using tiny (atomic) mutables between multiple threads

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun Sep 13 03:04:23 EDT 2009


Hello Belka,

Sunday, September 13, 2009, 10:45:35 AM, you wrote:

> I used an MVar to signalize to many threads, when it's time to finish their
> business (I called it a LoopBreaker).

btw, may be you can change the architecture? in particular, where
these threads getting their jobs? if they read them from channels (or
you may change your code and split it to job producer and job executor
communicating via channel), then you may just push EOF job to each
queue when party is over

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list