<div dir="ltr">Thanks a lot! And I will read that link.<div><br><div>And I'm sorry I didn't define cleanly about some words.</div><div><br></div><div>Duration is time slice for task. (you are right, <span style="font-size:14px"> </span><span style="font-size:14px">"execute </span><span style="font-size:14px">for x amount of time"</span>)</div></div><div>As you said period, I want to say that.</div><div><br></div><div>Also I will search example code in rtems.git/ and if I write my code I will post.</div><div><br></div><div>Thanks!.</div><div>Sean.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-01 8:04 GMT+09:00 Gedare Bloom <span dir="ltr"><<a href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On Mon, Nov 30, 2015 at 1:14 PM, 박시형 <<a href="mailto:inputsh@gmail.com" target="_blank">inputsh@gmail.com</a>> wrote:<br>
> Hello?<br>
> I'm the beginner of RTEMS and C language.<br>
><br>
> I'm trying to make rtems task to running given duration(execution time) and<br>
> period.<br>
> I mean, I want to running like followings.<br>
> 'task 1'  duration 10 ms and period is 10 ms.<br>
> 'task 2'  duration 15 ms and period is 20 ms.<br>
><br>
</span>Period usually means how often the task executes, so a period of 10ms<br>
means that task should execute every 10ms. If task 1 really takes 10ms<br>
every 10ms, then there is no other time for task2? Or do you want the<br>
period to be duration+10ms for  task1?<br>
<br>
Can you define what you mean by duration and period?<br>
<br>
You might like to read<br>
<a href="https://docs.rtems.org/doc-current/share/rtems/html/c_user/Rate-Monotonic-Manager.html#Rate-Monotonic-Manager" rel="noreferrer" target="_blank">https://docs.rtems.org/doc-current/share/rtems/html/c_user/Rate-Monotonic-Manager.html#Rate-Monotonic-Manager</a><br>
if you have a real-time periodic application you need to satisfy.<br>
<span><br>
> So, when I made tasks I give RTEMS_NO_PREEMPT | RTEMS_TIMESLICE for tasks<br>
> mode.<br>
> But in this case, I can't give each time slice to each task.<br>
><br>
> Therefore I was try RTEMS timer for duration and rtems_task_wake_after for<br>
> period.<br>
> I think timer triggered and timer handler called rtems_task_wake_after<br>
> function then I can solve that problem. But it wasn't work.<br>
><br>
</span>Maybe you can post your code. I don't entirely understand what you are<br>
trying to accomplish. You can 'grep' or search through the<br>
rtems.git/testsuites for lots of examples of using the various rtems_<br>
functions.<br>
<br>
I don't think there is any function that would let you say "execute<br>
for x amount of time" if that is what you mean by duration.<br>
<br>
Gedare<br>
<span><br>
> How can i fix this thing.. Which method can i use for duration and period.<br>
> regards.<br>
><br>
><br>
><br>
><br>
><br>
</span>> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>