<div dir="ltr">Hi, <div><br></div><div>The formulas both are correct. </div><div>More formally, we can explicitly define "n" as the maximum number of tasks and "i" as the index of task.</div><div>Then the formulas will become more clear like this:<br><br>Utilization = \sum_{i=1}^{n} Time_i/Period_i<br>maximumUtilization = n * (2^{\frac{1}{n}} - 1)<br></div><div><br></div><div>Best,</div><div>Kuan-Hsun</div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-10 15:10 GMT-07:00 Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would appreciate someone double-checking that I translated the formulas<div>correctly.</div><div><br></div><div>Thanks.</div><span class="m_-8979322807654490684HOEnZb"><font color="#888888"><div><br></div><div>--joel</div></font></span></div><div class="m_-8979322807654490684HOEnZb"><div class="m_-8979322807654490684h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 10, 2017 at 3:29 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
 c-user/rate_monotonic_manager<wbr>.rst | 14 ++++++--------<br>
 1 file changed, 6 insertions(+), 8 deletions(-)<br>
<br>
diff --git a/c-user/rate_monotonic_manage<wbr>r.rst b/c-user/rate_monotonic_manage<wbr>r.rst<br>
index 05eb59f..1309a88 100644<br>
--- a/c-user/rate_monotonic_manage<wbr>r.rst<br>
+++ b/c-user/rate_monotonic_manage<wbr>r.rst<br>
@@ -267,21 +267,19 @@ Processor Utilization Rule<br>
<br>
 The Processor Utilization Rule requires that processor utilization be<br>
 calculated based upon the period and execution time of each task.  The fraction<br>
-of processor time spent executing task index is ``Time(index) /<br>
-Period(index)``.  The processor utilization can be calculated as follows:<br>
+of processor time spent executing task index is ``Time(i) / Period(i)``.<br>
+The processor utilization can be calculated as follows:<br>
<br>
-.. code-block:: c<br>
+.. math::<br>
<br>
-    Utilization = 0<br>
-    for index = 1 to maximum_tasks<br>
-        Utilization = Utilization + (Time(index)/Period(index))<br>
+    Utilization = \sum_{i=1}^{maximumTasks} Time_i/Period_i<br>
<br>
 To ensure schedulability even under transient overload, the processor<br>
 utilization must adhere to the following rule:<br>
<br>
-.. code-block:: c<br>
+.. math::<br>
<br>
-    Utilization = maximum_tasks * (2**(1/maximum_tasks) - 1)<br>
+    maximumUtilization = maximumTasks * (2^{\frac{1}{maximumTasks}} - 1)<br>
<br>
 As the number of tasks increases, the above formula approaches ln(2) for a<br>
 worst-case utilization factor of approximately 0.693.  Many tasks sets can be<br>
<span class="m_-8979322807654490684m_-5182102779369500588HOEnZb"><font color="#888888">--<br>
1.8.3.1<br>
<br>
</font></span></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman<wbr>/listinfo/devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-8979322807654490684gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">M.Sc. Kuan-Hsun Chen<br>
<br>
TU Dortmund<br>
Department of Computer Science 12<br>
Design Automation of Embedded Systems<br>
Otto-Hahn-Strasse 16, Room 102<br>
<br>
44227 Dortmund<br>
Germany<br>
<br>
Phone:  <u><span style="color:rgb(0,0,255)"><a href="tel:+49%20231%207556124" value="+492317556124" target="_blank">+49 231 755 6124</a></span></u><br>
Mail:   <a href="mailto:kuan-hsun.chen@tu-dortmund.de" target="_blank">kuan-hsun.chen@tu-dortmund.de</a><a href="mailto:kuan-hsun.chen@tu-dortmund.de" target="_blank"></a></div></div>
</div></div>