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