Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
In µC/OS-III Features with Longer Critical Sections section , it is mentioned that
"Multiple tasks at the same priority" will create longer critical section.

Below is the reason mentioned for the same

"
SQL
Although this is an important feature of µC/OS-III, multiple tasks at the same priority create longer critical sections. However, if there are only a few tasks at the same priority, interrupt latency would be relatively small.

If multiple tasks are not created at the same priority, use the interrupt disable method.


But i don't understood the above exlanation. How multiple tasks running at equal priority will create a longer critical sections and how few tasks at same priority will reduce the interrupt latency?
you can find below the link where µC/OS-III doc explained this things.

https://doc.micrium.com/display/osiiidoc/uC-OS-III+Features+with+Longer+Critical+Sections[^]

Can any one explain briefly?

Thanks,
Ravi
Posted
Comments
[no name] 2-Aug-15 5:13am    
Same for me, I'm looking forward to an explanation from an expert here. Maybe it is only bad phrased...I hope. I also don't see a reason that critical section time is a function of number of Tasks.
Kornfeld Eliyahu Peter 2-Aug-15 6:15am    
Not sure what are you asking...
Are you want to know what 'critical section'/'interrupt latency' is?
[no name] 2-Aug-15 6:56am    
I'm also not sure but this part of the "help doc"
<blockquote class="quote"><div class="op">Quote:</div>Although this is an important feature of µC/OS-III, multiple tasks at the same priority create longer critical sections</blockquote>

makes no sense ... at least also for me ;)
Kornfeld Eliyahu Peter 2-Aug-15 7:03am    
See my comment below...
Kornfeld Eliyahu Peter 2-Aug-15 7:03am    
This may explain to you the why: https://doc.micrium.com/display/osiiidoc/Direct+vs.+Deferred+Post+Method
(remember that Direct Method is the default call method for the OS)
You should read this also, with care: http://www.analog.com/media/en/dsp-documentation/software-manuals/Micrium-uCOS-III-UsersManual.pdf

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900