[MacRuby-devel] Dispatch gem Re: Thread safety in apply example?

Ernest N. Prabhakar, Ph.D. prabhaka at apple.com
Mon Jan 24 09:08:30 PST 2011


Hi all,

On Jan 24, 2011, at 8:24 AM, Matt Massicotte wrote:

> I'm just saying that achieving parallelism actually is hard.  I've been much better served (though, admittedly, not in Ruby) by trying to get really familiar with the queue paradigm and understanding how to use them in place of traditional locks and threads.

Right, that is why I created the extended Dispatch module (now a gem), to try to handle all that bookkeeping safely.

I think those examples don't suffer the same problem.

-- Ernie P.




More information about the MacRuby-devel mailing list