Multithreaded Bash

Avoiding leaks

Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.

This uses & to fork a thread and jobs to count the number of threads currently running. If the number is 8 or above, it sleeps. Since it is a bash builtin, jobs will only work if your shebang is #!/usr/bin/bash. It runs six to eight times faster. Aurphan is a really simple example though. It does not have to do anything with the output of rpc_search(). In other words, we have a parallel map but no reduce.

Name:
Mail: (not shown)

Please type this: