Subject:
|
Re: Re: Scheduler patch
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Wed, 10 Jul 2002 14:43:48 GMT
|
Viewed:
|
2456 times
|
| |
| |
> Can you give me an example of when a user needs to have several processes
> running to solve a task. I'm probably stupid not finding any :P
I'd built a maze solver. When the solver makes a step (for example forward)
it uses the light sensor to search for a wall and the rotation sensor to
measure the distance it has traveled. If a wall is hit, the solver steps
back until it reaches the start position; when the full distance of a step
is traveled, the solver knows it could go this way and thinks about the
next step.
So there are two processes: one for the light sensor and one for the
stepper. The wakeup procedure waits until one process ends and checks which
process ended. The main program can act upon the outcome.
Michael
|
|
Message is in Reply To:
| | Re: Re: Scheduler patch
|
| (...) Thanks for the link, your solution of proportional timeslicing is more straightforward than mine which I like. The only downside would be that a high prioritized process would have it's wakeup conditions checked less frequently than a low (...) (22 years ago, 10-Jul-02, to lugnet.robotics.rcx.legos)
|
17 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|