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

<head>

<meta name=Generator content="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="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="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=qrichtext content=1>
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='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=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='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)…<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='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=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='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…but,
I don’t know much about your system…<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='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=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Kind Regards<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Manuel Coutinho<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

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

<div>

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

<hr size=2 width="100%" align=center tabindex=-1>

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

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

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face=Console><span style='font-size:12.0pt;
font-family:Console'>On Wednesday April 22 2009, Manuel Coutinho wrote:<br>
> My 2 cents, if I may :) =><br>
><br>
> Why not make that task (that does the urgent job) with a high priority?<br>
> It seams the standard way of increasing responsiveness while allowing<br>
> interrupts and task switching</span></font>…<font face=Console><span
style='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 "snapshot" of the moment it was
started at.<br>
<br>
<o:p></o:p></span></font></p>

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

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

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

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

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

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

</div>

</div>

</body>

</html>