P3L
In P3L worker farms are modeled by means of the farm constructor as follows.
farm P in (int data) out (int result)
W in (data) out (result)
result = f(data)
end
end farm
When the skeleton is executed, a number of workers W are executed in parallel with the two P processes (the emitter and the collector). Each worker executes the function f() on its data partition.