shotgun
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:unix shell utility to parallelize stream processing.
shotgun is a unix shell utility which can be used to parallelize long-running processes that operate on data from stdin.

Examples:
lets say we have a fast-growing log file.  we also have a program which
reads lines from stdin, does some CPU intensive work, and then inserts 
them into a database.  if we can parallelize the expensive work, we can
save a lot of time.  thats where shotgun comes in.

    $ tail -f test.log | shotgun.py -p 4 -c "crunch"

in the above example, shotgun launches 4 instances of the 'crunch'
program. it then reads lines  from the tail -f command and will distribute
those lines across the pool of subprocesses, writing to their stdin.




本源码包内暂不包含可直接显示的源代码文件,请下载源码包。