Florian G. Pflug wrote:
> > > # Is there any documentation of DRuby/Rinda/TupleSpace in english?
> > > 
> > > I haven't found anything either. I think you need to look elsewhere.
> > > 
> > > JavaSpaces in Java are Sun's implementation of TupleSpaces.
> > > Rinda is the Ruby version of Linda :-)
> > > 
> > > If you already know this, then there's code samples left to look at in the
> > > downloads.
> Hi
> 
> I have to admit, I do know that Rinda/TupleSpace is Ruby's version of
> Linda/JavaSpaces, but I don't really know what these do, I how they relate
> to DRuby.

At the beginning there is a TupleSpace. 

Multiple thread share one central TupleSpace.
There are two basic operations a thread can perform onto this TupleSpace. 
It can "put" a tuple into it or can wait for a tuple, where the tuple it waits for can
be pattern-matched (e.g. wait for a tuple where the first element is the string
"hallo", the second is the Integer 3 and the last is not used for pattern-matching,
i.e. can be of any value). When the tuple gets available it is removed from the
Tuplespace and returned to the thread which waited for it (operation "get").

These two basic operations (put, get) are performed thread-safe.
 
Rinda is a distributed TupleSpace, where a TupleSpace is not shared between 
multiple threads but between different distributed applications.


Regards,

Michael

-- 
Michael Neumann
merlin.zwo InfoDesign GmbH
http://www.merlin-zwo.de