Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能完成一个循环来查询它在可用 CPU 内核上的迭代?所以每次迭代都将并行运行,因此完成得更快?我正在尝试了解宝石赛璐珞,但如果有另一种我可以使用的宝石,请毫不犹豫地告诉我!
如果不是 jRuby 标签,我也倾向于将其标记为重复;)
您没有确切说明您要解决什么问题,但是由于您的 Ruby 现在可以访问 Java 标准库,因此在 Java 7+ 中您可以使用Fork/Join框架。Charles Nutter 编写了一个不错的 JRuby包装器。