[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No subject



suspending threads are contemplated.

=20

Between the option of suspending all other threads or making the urgent =
task
non-preemptive, I would take the last one=85but, I don=92t know much =
about your
system=85

=20

Hope this helped, at least a bit :)

=20

Kind Regards

Manuel Coutinho

=20

  _____ =20

From: Leon Pollak [mailto:leonp at plris.com]=20
Sent: Wednesday, April 22, 2009 5:59 PM
To: Manuel Coutinho
Cc: 'Thomas D=F6rfler'; rtems-users at rtems.com
Subject: Re: rtems_iterate_over_all_threads

=20

On Wednesday April 22 2009, Manuel Coutinho wrote:
> My 2 cents, if I may :) =3D>
>
> Why not make that task (that does the urgent job) with a high =
priority?
> It seams the standard way of increasing responsiveness while allowing
> interrupts and task switching=85
Because when, for example, doing I/O, the urgent task will allow task
switching, and this will change the situation, which is unacceptable.
The urgent task must process the "snapshot" of the moment it was started =
at.



=20

Thanks.
Leon



=20

=20

--=20
            Dr.Leon M.Pollak
                Director
       PLR Information Systems Ltd.
Tel.:+972-98657670  |  POB 8130, H'Aomanut 9,
Fax.:+972-98657621  |  Poleg Industrial Zone,
Mob.:+972-544739246 |  Netanya, 42160, Israel.



=20


------=_NextPart_000_0013_01C9C3F8.3D6E3BF0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>

<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"country-region"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--p
	{white-space: pre-wrap;}
li
	{white-space: pre-wrap;}

 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Console;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

<meta name=3Dqrichtext content=3D1>
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Not meaning to be a pain but, you =
could
solve this by making the urgent task non-preemptive or making it the =
highest
priority thread. In either of these ways, no other threads will be able =
to run
unless the urgent task relinquishes the =
CPU.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>By the way, another small note: =
suspending
all other threads can be very time consuming... (if you have too many =
threads)&#8230;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>From the schedulability point of =
view,
there are analyses in which suspending threads are =
contemplated.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Between the option of suspending =
all other
threads or making the urgent task non-preemptive, I would take the last =
one&#8230;but,
I don&#8217;t know much about your =
system&#8230;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hope this helped, at least a bit =
:)<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Kind =
Regards<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Manuel =
Coutinho<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0in =
0in 4.0pt'>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Leon =
Pollak
[mailto:leonp at plris.com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, April =
22, 2009
5:59 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Manuel Coutinho<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> 'Thomas D=F6rfler';
rtems-users at rtems.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Re:
rtems_iterate_over_all_threads</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DConsole><span =
style=3D'font-size:12.0pt;
font-family:Console'>On Wednesday April 22 2009, Manuel Coutinho =
wrote:<br>
&gt; My 2 cents, if I may :) =3D&gt;<br>
&gt;<br>
&gt; Why not make that task (that does the urgent job) with a high =
priority?<br>
&gt; It seams the standard way of increasing responsiveness while =
allowing<br>
&gt; interrupts and task switching</span></font>&#133;<font =
face=3DConsole><span
style=3D'font-family:Console'><br>
Because when, for example, doing I/O, the urgent task will allow task
switching, and this will change the situation, which is =
unacceptable.<br>
The urgent task must process the &quot;snapshot&quot; of the moment it =
was
started at.<br>
<br>
<o:p></o:p></span></font></p>

<p style=3D'margin:0in;margin-bottom:.0001pt'><font size=3D3 =
face=3DConsole><span
style=3D'font-size:12.0pt;font-family:Console'><o:p>&nbsp;</o:p></span></=
font></p>

<p class=3DMsoNormal><font size=3D3 face=3DConsole><span =
style=3D'font-size:12.0pt;
font-family:Console'>Thanks.<br>
<st1:country-region w:st=3D"on"><st1:place =
w:st=3D"on">Leon</st1:place></st1:country-region><br>
<br>
<o:p></o:p></span></font></p>

<p style=3D'margin:0in;margin-bottom:.0001pt'><font size=3D3 =
face=3DConsole><span
style=3D'font-size:12.0pt;font-family:Console'><o:p>&nbsp;</o:p></span></=
font></p>

<p =
style=3D'margin:0in;margin-bottom:.0001pt;-qt-paragraph-type:empty;-qt-bl=
ock-indent:0;
-qt-user-state:0'><font size=3D3 face=3DConsole><span =
style=3D'font-size:12.0pt;
font-family:Console'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DConsole><span =
style=3D'font-size:12.0pt;
font-family:Console'>-- <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D=
r.Leon
M.Pollak<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;
&nbsp;Director<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;PLR Information Systems Ltd.<br>
Tel.:+972-98657670&nbsp;&nbsp;|&nbsp;&nbsp;POB 8130, H'Aomanut 9,<br>
Fax.:+972-98657621&nbsp;&nbsp;|&nbsp;&nbsp;Poleg Industrial Zone,<br>
Mob.:+972-544739246&nbsp;|&nbsp;&nbsp;Netanya, 42160, =
<st1:country-region
w:st=3D"on"><st1:place =
w:st=3D"on">Israel</st1:place></st1:country-region>.<br>
<br>
<o:p></o:p></span></font></p>

<p style=3D'margin:0in;margin-bottom:.0001pt'><font size=3D3 =
face=3DConsole><span
style=3D'font-size:12.0pt;font-family:Console'><o:p>&nbsp;</o:p></span></=
font></p>

</div>

</div>

</body>

</html>

------=_NextPart_000_0013_01C9C3F8.3D6E3BF0--