I have a list of 80 objects in a list that are iterated through with a while loop. There are many operations that have to be run for each object, the script works great, no problem, but it takes 7 hours to complete. Is there a way to spawn a new process for each object in the list instead of going through the list serially? I've looked at subprocesses and other techniques, would like some input from here, though.
So, assume this example;
i = 0
while i < len(listName):
print("blah" + str(i))
i += 1
When this processes, it does through each list item in order, one at a time. I would like to know how I can go about spawning a different process for each object in listName.