# Discussion - SMART paralell processing

**URL:** <https://www.ruby-forum.com/t/discussion-smart-paralell-processing/223236>\
**Category:** Ruby\
**Created:** [September 26, 2012, 2:34pm UTC](https://www.ruby-forum.com/t/discussion-smart-paralell-processing/223236 "2012-09-26T14:34:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 26, 2012, 2:34pm UTC](https://www.ruby-forum.com/t/discussion-smart-paralell-processing/223236/1 "2012-09-26T14:34:39Z")

</div>

suppose I have a program:

### 

def process\_string(str)  
return str.reverse #a simple processing mentioned here-but in  
real a heavy process is there ~20 minutes  
end  
str=gets.chomp  
str\_p=process\_string(str)  
puts str\_p

### 

Here the method process\_string is written very simple, just for the  
completion of the code, but in my case it is a very heavy; processing  
takes \> 20 minutes, thats why I want it to be processed using many  
machines parallely on LAN.

So I have a list of strings as input, I want to process each, I have 4  
systems in LAN, I want to use all the systems paralelly-so get a sring  
give it to a system-that will return a processed output to one machine-  
or simple I want to collect all output-how to achieve this?

Lets discuss on it and get one of the complete suggestion and discuss  
about all possibilities (advantages and disadvantages for each options)  
and make this thread a complete one.

---

<div class="post-metadata">

**Author:** ![proggrammer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@proggrammer](https://www.ruby-forum.com/u/proggrammer)\
**Post date:** [September 26, 2012, 4:00pm UTC](https://www.ruby-forum.com/t/discussion-smart-paralell-processing/223236/2 "2012-09-26T16:00:29Z")

</div>

Something like this has already been discussed. The topic was “working  
on multiple machines in a LAN”

There are some useful starting points in there.
