Multi-threaded Bash scripting & process management at the command line - LinuxConfig.org

The things you can do using Bash script are limitless. Once you begin to developed advanced scripts, you’ll soon find you will start to run into operating system limits. For example, does your computer have 2 CPU threads or more (many modern machines have 8-32 threads)? If so, then you will likely benefit from multi-threaded Bash scripting and coding. Continue reading and find out why!


This is a companion discussion topic for the original entry at https://linuxconfig.org/multi-threaded-bash-scripting-process-management-at-the-command-line

This is, in fact, multiprocessing, not multithreading. The Bash subshells, whether opened with &, $() or anything, always open parallel processes, never threads.

This distinction is crucial - I found this article when searching for actual multithreading. Would you mind reviewing?