[M3devel] Hard real time
Jay K
jay.krell at cornell.edu
Wed Dec 16 11:39:34 CET 2009
(We should port to QNX and VxWorks?) :)
- Jay
From: jay.krell at cornell.edu
To: wagner at elegosoft.com; m3devel at elegosoft.com
Subject: RE: [M3devel] Hard real time
Date: Wed, 16 Dec 2009 10:35:42 +0000
search the web for:
"setthreadpriority"
"opengroup sched.h"
http://www.opengroup.org/onlinepubs/007908799/xsh/sched.h.html
http://msdn.microsoft.com/en-us/library/ms686277(VS.85).aspx
etc.
Would be good to abstract out something that can be
done over pthreads and Win32 and possibly user threads.
As I understand, "hard real time" is rare.
You know, when page faults occur cannot be unpredictable
and still be hard real time, right?
"rough scheduling parameters", sure, but not "hard real time".
You could also ignore Win32 and user threads and
drop down into C and party on pthread_self().
That is, the key is coming up with portable interfaces
and interface "policing".
- Jay
> Date: Wed, 16 Dec 2009 10:39:06 +0100
> From: wagner at elegosoft.com
> To: m3devel at elegosoft.com
> Subject: Re: [M3devel] Hard real time
>
> Quoting Peter McKinna <peter.mckinna at gmail.com>:
>
> > Hi,
> >
> > Is there any way to use the realtime options of pthreads, to set the
> > scheduler and the mutex protocols for priority inherit etc, all that good
> > stuff in an M3 program?
>
> I don't know of such an interface, but it would be great if we had
> it. Is this stuff pthread standard, or more or less system dependent?
>
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091216/0c8b2bb1/attachment-0002.html>
More information about the M3devel
mailing list