Is it possible to have some parallelization of functions in shell script?

view full story

http://stackoverflow.com – So, we can execute simultaneous command in the shell by appending '&' to the end of the line and then executing 'wait' to wait for the commands to finish. Is it possible for functions? Example... #!/bin/bash function1(){ # let me do my thing here } function2(){ # i don't care about the others } function3(){ echo "I like $1 with potato!" # more work until kingdom come } echo "Processing please wait..."; function1 & function2 & function3 "rice" & wait echo "Now finished. Thanks for your time."; (HowTos)