Anonymous user
Distributed programming: Difference between revisions
m
→{{header|C}}
Thundergnat (talk | contribs) m (→{{header|Raku}}: Fix up Perl 6 -> Raku calling conventions) |
m (→{{header|C}}) |
||
Line 118:
=={{header|C}}==
Using PVM
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>
spawn -> /tmp/a.out 1
[2]
|