Inside a BASH script we can have multiple processes running in background which intercommunicate using named pipes, FIFOs registered on the filesystem. An example of this could
Bash 4 has coprocesses.
You can also use anonymous named pipes, aka process substitution in Bash 2, 3 or 4.