Install libparallel-iterator-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libparallel-iterator-perl
Simple parallel execution
The standard map() function applies a user supplied transformation function to each element in a list, returning a new list containing the transformed elements. . Parallel::Iterator provides a 'parallel map()'. Multiple worker processes are forked so that many instances of the transformation function may be executed simultaneously.