Pack and send data objects
pvm_send (Int_Type tid, Int_Type msgid, object [,...])
This function is much like pvm_psend
except that it
sends additional type information with each object. Using
this function paired with pvm_recv_obj
simplifies
sending aggregate data objects such as structures and removes
the need for the receiver to specify datatypes explicitly.
To send a S-lang structure to another process:
variable obj = struct {name, x, y, data};
...
pvm_send_obj (tid, msgid, obj);
Receive data objects from pvm_send_obj
obj = pvm_recv_obj ()
This function receives an object sent by pvm_send_obj
and returns a slang object of the same type that was sent.
It simplifies sending aggregate data types such as structures.
To receive a S-lang object sent by another process
via pvm_send_obj
:
obj = pvm_recv_obj ();
Returns information about the present virtual machine configuration
Struct_Type = pvm_config ()
See the PVM documentation.
h = pvm_config ();
Terminates a specified PVM process
pvm_kill (Int_Type tid)
See the PVM documentation.
pvm_kill (tid);
Clear default send buffer and specify message encoding
bufid = pvm_initsend (Int_Type encoding)
See the PVM documentation.
bufid = pvm_initsend (PvmDataDefault);
Pack the active message buffer with arrays of prescribed data type
pvm_pack (object)
See the PVM documentation.
pvm_pack (x);
Immediately sends the data in the active message buffer
pvm_send (Int_Type, tid, Int_Type msgid)
See the PVM documentation.
pvm_send (tid, msgid);
Receive a message
bufid = pvm_recv (Int_Type tid, Int_Type msgtag)
See the PVM documentation.
bufid = pvm_recv (tid, msgtag);
Unpack the active message buffer into arrays of prescribed data type
item = pvm_unpack (Int_Type type_id, Int_Type num)
See the PVM documentation.
item = pvm_unpack (type, num);
Pack and send data
pvm_psend (Int_Type tid, Int_Type msgid, object [,...])
See the PVM documentation.
pvm_psend (tid, msgid, data);
Unlike the pvm_send
function in the PVM library, this function
does not operate asynchronously.
Add one or more hosts to the PVM server
Int_Type[] = pvm_addhosts (String_Type[] hosts)
See the PVM documentation.
tids = pvm_addhosts (["vex", "verus", "aluche"]);
Delete one or more hosts from the PVM server
pvm_delhosts (String_Type[] hosts)
See the PVM documentation.
pvm_delhosts (["vex", "verus"]);