PNO - Threads and other evils

Started by Zeriab, June 10, 2009, 05:48:31 am

Previous topic - Next topic

fugibo

Quote from: Blizzard on June 11, 2009, 01:52:51 pm
True. Multi-core processors and multi-processor PCs do run threads at the same time.


And then there's hyper-threading. There are some old single-cores with that.

Zeriab

In RMXP only one core is used so they won't run at the same time.

fugibo

Quote from: Zeriab on June 11, 2009, 04:32:15 pm
In RMXP only one core is used so they won't run at the same time.


Because of the aforementioned "RUBY HAS NO THREAD-SAFETYZ!" Two cores can equal up to half as much lag (depending upon implementation), so if Ruby allowed for you to embed it into truly multi-thread applications, it'd be pretty nice. See what I meant?

Zeriab

Properly the reason to restrict the Ruby interpreter to 1 thread and use their own scheduler. That way it they don't have to deal with threads in the core.
I know that in practice you use multiple interpreters to utilize more cores or cpus. (It may have changed with 1.9 >_>)