Distributed programming: Difference between revisions

m
m (→‎{{header|Raku}}: Fix up Perl 6 -> Raku calling conventions)
Line 118:
 
=={{header|C}}==
Using PVM [[http://www.csm.ornl.gov/pvm/pvm_home.html]
This program is in a sense both a server and a client, depending on if its task is spawned with a command-line argument: if yes, it spawns another task of the same executible on the parallel virtual machine and waits for it to transmit data; if no, it transmits data and is done.
<lang C>#include <stdio.h>
Line 169:
pvm_exit();
return 0;
}</lang>Running{{out}}(running it: (on PVM console, exe is /tmp/a.out)<lang>pvm> spawn -> /tmp/a.out 1
spawn -> /tmp/a.out 1
[2]
Anonymous user