[MacRuby-devel] concurrent calling into macruby
Laurent Sansonetti
lsansonetti at apple.com
Thu Jan 6 14:48:25 PST 2011
Hi Joel,
Yes, MacRuby is fully re-entrant and multi-threaded. The GC also runs on its own threads and will allocate/collect memory from them. There shouldn't be any problem, assuming you are careful not trying to run into the same object from different threads. Unlike the traditional Ruby implementation, there is no global lock to prevent race conditions.
If you run into a problem, let us know :)
Laurent
On Jan 6, 2011, at 12:10 PM, Joel Reymont wrote:
> I have a plugin that's supposed to call into MacRuby to deliver stock prices. This may happen a few times per second.
>
> I will be running other MacRuby code at the same time. Think a trading systems development environment, with charting, Ruby code editing, etc.
>
> Will MacRuby be able to handle this situation?
>
> Thanks, Joel
>
> ---
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
>
>
>
>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110106/7af9bebb/attachment.html>
More information about the MacRuby-devel
mailing list