P4-Linda is a nice implementation of the Linda parallel processing environment by G. Schoinas.
P4-Linda follows the original Gelertner Linda model, in that processes are spawned via eval() calls to functions; see the primes.c example. Also see that example for the syntax of in(), out() and rd() calls, which require C-style "formats."
If you wish to compile a P4-Linda program for use on a network of workstations, first install the p4 system. Make sure to set the environment variable P4_HOME_DIR correctly. Then set up the Linda library file:
gcc -g -I$P4_HOME_DIR/include -c sr_linda.c
Then to compile a program z.c, make sure that the file does an include of sr_linda.h (and not mon_linda.h) and then type
gcc -g -I$P4_HOME_DIR/include -o z z.c sr_linda.o -L$P4_HOME_DIR/lib -lp4
(If you try this on the sample program primes.c, add the flag -lm to access sqrt().) Later you can make a .a library out of sr_linda.o if you wish.
To run the program (which is an ordinary p4 program), type
z -p4pg startup.pg
where startup.pg is your "procgroup" file; see my p4 notes and official p4 documentation on my p4 page.
Note carefully that you will need to set up at least 3 p4 nodes: One for your main program, one to act as a tuple server, and one to handle the eval() calls.
Other software Web sites by Norm Matloff: