Subject:
|
Polling sensor values with wait_event
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 26 Nov 2002 16:38:46 GMT
|
Viewed:
|
3043 times
|
| |
| |
Hello all,
Is it true that the wakeup function is only checked once every timeslice
and only for the process that has the highest priority and is at the
front of the priority chain? For example, a process k is waiting on the
wakeup function y wich evaluates true, and it is at at the end of the
priority chain on the highest priority. Two other process are before k,
do they get executed before y is evaluated and may now be false? In this
case the event where y evaluated to true would have been ignored.
The code I am referring to is in tm.c in the function tm_scheduler after
the comment: "find next process willing to run".
Thanks for your comments
Thomas
|
|
Message has 1 Reply: | | Re: Polling sensor values with wait_event
|
| Thomas, You are mostly correct. However, keep in mind that tasks with the same priority get checked in turn. The first task in the priority chain does not get undo precedence over the others in the same priority level. Example: Tasks A, B and C all (...) (22 years ago, 27-Nov-02, to lugnet.robotics.rcx.legos)
|
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|