LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Run for cycle in all cores of the machine (https://www.linuxquestions.org/questions/linux-newbie-8/run-for-cycle-in-all-cores-of-the-machine-4175481292/)

raquelmarisa 10-18-2013 09:03 AM

Run for cycle in all cores of the machine
 
Hello,

TB0ne 10-18-2013 09:48 AM

Quote:

Originally Posted by raquelmarisa (Post 5048075)
Hello,

I have a for cycle to iterate over all the files in a directory, and I want that 8 iterations occur simultaneously, each one in one of the 8 cores of the machine, to reduce the processing time.
Is that possible?

Thank you.

Sure is...you just have to write your code to do it.


All times are GMT -5. The time now is 09:04 AM.