From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <53EA690E.50101@xenomai.org> Date: Tue, 12 Aug 2014 21:20:46 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai] Parallel Computing? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Yogi A. Patel" , xenomai@xenomai.org On 08/12/2014 08:56 PM, Yogi A. Patel wrote: > Hi - > > I am interested in using Xenomai with multiple cores. When I run “cat > /proc/cpuinfo | grep “model name” I see that there are two CPUs > listed. > > My system using data acquisition from a NI DAQ (using ANALOGY > driver), processes it with some model, and then provides some output > through the NI DAQ. > > I would like to make the system faster (both real-time and > computation) by off loading the acquisition and data processing parts > to one CPU and then letting the user interactions and the GUI > (Qt-based) processed by the other CPU. > > Is this possible? If so, any examples on how to do this? Xenomai never migrates a thread running in primary mode, so the job of deciding on which cpu to run a task is left to Linux. So, simply use sched_setaffinity to decide on which cpu to run a thread. -- Gilles.