I agree that there is no difference if you would create as many threads as forked processes.
The difference is that you need to call fork once for every planned task - whereas in a thread model you can share data and thus you would start threads only 5 times depending on the number of workers as the workers can get the data from a queue instead of a function parameter.

In reply to Re^3: forks for running multiple codes at same time by weismat
in thread forks for running multiple codes at same time by adamquestion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":