|
|
| Author |
Message |
< Erlang ~ TupleSpace? |
| Gizmo |
Posted: Tue Oct 09, 2007 7:47 pm |
|
|
|
Joined: 09 Oct 2007
Posts: 2
|
I do apologies if this question does not fit the standard of this forum, although i'm a newbie with functional programming.
I am wandering how to create a new TupleSpace and return a new Pid of that tuplespace.
I know that i have to use a spawn function and the pid but not how to initilize a new tuplespace.
tnx for your help |
|
|
| Back to top |
|
| Mazen |
Posted: Wed Oct 10, 2007 8:46 am |
|
|
|
User
Joined: 20 Jul 2006
Posts: 164
Location: London
|
What is a TupleSpace? Could you please elaborate?
Normally when you spawn a new process you call
Code:
Pid = proc_lib:spawn(M,F,A).
Where M F A is the Module, Function Arguments to the initial function for the process.
Hope this helped out somewhat...
check out this link for processes:
http://www.erlang.org/doc/reference_manual/part_frame.html
/M |
|
|
| Back to top |
|
| Gizmo |
Posted: Wed Oct 10, 2007 9:35 am |
|
|
|
Joined: 09 Oct 2007
Posts: 2
|
Mazen wrote: What is a TupleSpace? Could you please elaborate?
Normally when you spawn a new process you call
Code:
Pid = proc_lib:spawn(M,F,A).
Where M F A is the Module, Function Arguments to the initial function for the process.
Hope this helped out somewhat...
check out this link for processes:
http://www.erlang.org/doc/reference_manual/part_frame.html
/M
Tnx for your reply, much appreciated, a tuple space is an implementation of the associative memory paradigm for parallel/distributed computing. It provides a repository of tuples that can be accessed concurrently.
"source: wikipedia"
I'm trying to create a new function that returns the Pid of a new (empty) tuplespace. |
|
|
| Back to top |
|
| zhesto |
Posted: Fri Nov 02, 2007 3:00 am |
|
|
|
Joined: 29 Jan 2007
Posts: 5
Location: Osaka
|
|
| Back to top |
|
| thanos |
Posted: Mon Jan 14, 2008 4:04 pm |
|
|
|
Joined: 23 Nov 2007
Posts: 5
Location: new york
|
Your tuple space can be a process with the following interface:
* out(tuple)
* in(match)
* rd(match)
Implementing the routines in dets or ets, mnesia.
All three databases offer all you need for the classic Linda interface. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|