Ruby:线程池的任何宝石? [英] Ruby: Any gems for threadpooling?

查看:152
本文介绍了Ruby:线程池的任何宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何人可以推荐的线程池gem?

Is there a gem for threadpooling anyone can recommend?

推荐答案

从我的经验来看,fork / process pooling比在Ruby中存在(假设你不需要太多的线程通信)。前一段时间,我创建了一个叫做process_pool的gem,它是一个基于文件的作业队列的非常基本的进程池(可以在这里查看: http://github.com/psyho/process_pool )。

From my experience forking/process pooling is much more effective than thereadpooling in Ruby (assuming you do not need much in terms of thread communication). Some time ago I created a gem called process_pool, which is a very basic process pool with a file based job queue (you can check it out here: http://github.com/psyho/process_pool).

这篇关于Ruby:线程池的任何宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆