LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-18-2013, 10:03 AM   #1
raquelmarisa
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Run for cycle in all cores of the machine


Hello,

Last edited by raquelmarisa; 10-18-2013 at 04:11 PM.
 
Old 10-18-2013, 10:48 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by raquelmarisa View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora18 want to run a script at end of boot cycle. HOW? lleb Linux - Newbie 11 02-02-2013 10:19 PM
benchmark problems : why do CPU cores run slow? maxreason Linux - Software 6 02-28-2012 03:23 AM
thread scheduling. is it guaranteed that kernel will run threads on all cores? anilp Linux - Kernel 1 01-26-2011 03:30 PM
LXer: Configurable, extensible processor cores run Linux LXer Syndicated Linux News 0 12-05-2006 07:54 AM
How do you run a print-head cleaning cycle?? Huddlebum Linux - Newbie 1 04-02-2004 04:44 PM


All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration