Subject:
|
Re: threads - bug in the firmware?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 21 Jan 2002 00:12:17 GMT
|
Viewed:
|
2310 times
|
| |
| |
In lugnet.robotics.rcx.legos, Mike McFarlane writes:
> Hi Ross
>
> > Note also since bumper_task() is an infinite loop, and you never use pid1, you
> > could save one thread by doing this:
>
> What are the advantages and disadvantages of
> this method as opposed to the one I used?
Advantage: Less memory used (each thread needs a block of memory in the kernel,
I'm at work & can't remember the struct name off hand). In the case under
discussion, this doesn't make much difference, but in a large project, memory
use can become critical.
Disadvantage: cannot set the priority of main(), except by re-compiling kernel,
AFAIK.
ROSCO
|
|
Message is in Reply To:
18 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|