Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C85791.2FC314A6" Date: Tue, 15 Jan 2008 09:10:45 -0700 Message-ID: <51CAD0CE1504444DBE77CBBE51A0135D376570@domain.hid> From: "Steven Seeger" Subject: [Xenomai-help] rms scheduling List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C85791.2FC314A6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable How do you implement RMS scheduling in a userspace app? I didn't set the aperiodic timing mode in the kernel config because it said that it wasn't a good idea. I realize that I'm using one-shot, but I'm porting over software from an older RTAI project that used a periodic timebase of 125us. Since I'm currently configured to use one-shot, I think this may cause problems.=20 =20 What I want is for all tasks to have their timings be a multiple of some value, and then have all thread timing based around increments of that. So, if I set a task periodic, I want it to start in sync with the other threads. Perhaps the only way to do this is to have threads sync to a conditional variable when they start? =20 I saw I can use rt_set_timer_mode() to set the timebase for a skin. Would this give me the desired effect? =20 Steven =20 ------_=_NextPart_001_01C85791.2FC314A6 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

How do you implement RMS scheduling in a userspace = app? I didn’t set the aperiodic timing mode in the kernel config because = it said that it wasn’t a good idea. I realize that I’m using = one-shot, but I’m porting over software from an older RTAI project that used a periodic = timebase of 125us. Since I’m currently configured to use one-shot, I think = this may cause problems.

 

What I want is for all tasks to have their timings be = a multiple of some value, and then have all thread timing based around = increments of that. So, if I set a task periodic, I want it to start in sync with = the other threads. Perhaps the only way to do this is to have threads sync = to a conditional variable when they start?

 

I saw I can use rt_set_timer_mode() to set the = timebase for a skin. Would this give me the desired = effect?

 

Steven

 

------_=_NextPart_001_01C85791.2FC314A6--