Rubinius加入了一个名为“多虚拟机(Multi-VM)”的新功能,使得在一个OS进程中运行多个Ruby虚拟机成为可能。我们就这个功能的优点和实现请教了Rubinius项目的Evan Phoenix。
基于12个网页-相关网页
提出基于P 2 P结构的多虚拟机管理模型,并实现其原型系统。
A management model of virtual machines was proposed based on Peer-to-Peer (P2P) structure and its prototype system was implemented.
Rubinius是一个Ruby实现,它现在也在使用用户空间线程, 最近它还增加了多虚拟机支持 。
Rubinius, a Ruby implementation that currently also uses userspace threading, recently added MVM support. With this code vm = Rubinius::VM.spawn
举例来说,如果一个程序想要使用Skynet (MapReduce的Ruby版本),还想使用多虚拟机来并行运行任务,那么其必须进行适配以适合每种Ruby实现。
A program that, for instance, wants to use something like Skynet, a Ruby version of MapReduce, using multiple VMs to run tasks in parallel, will have to be adapted for every Ruby implementation.
应用推荐