This should be extremely simple to people who know this, but I am not one of them. I searched a lot about multi-processing, but it makes me even more confused...
I need to process about 160 data files independently. I have some function to deal with data, say f(arg1,arg2). My computer's CPU is i7-3770 (4 cores 8 threads). I was wondering if I can open 8 iptyhon qt consoles to run this same function (by copying the function to each console) with different values for arg1 and arg2 in the same time?
Or is there a very very simple example of do such task by using multiprocessing in python?
I know very little about coding, I am merely using pandas, numpy and scipy to process data. I am using Anaconda as my python environment.
Thank you so much for help!
multiprocessingmodule. In particular read about pool of workers. You don't have to run multiple qtconsoles to execute code in parallel just usePool.map