Subject:
|
Re: threads - bug in the firmware?
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 21 Jan 2002 00:12:17 GMT
|
Viewed:
|
2018 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
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: ![threads -Mike McFarlane (14-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: threads -Mike McFarlane (15-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/246.gif) ![Re: threads -Albert Huang (15-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: threads -Mike McFarlane (16-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: threads -Albert Huang (16-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: threads -Mike McFarlane (17-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: threads - bug in the firmware? -Mike McFarlane (16-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/246.gif) ![Re: threads - bug in the firmware? -Eric Swalens (16-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: threads - bug in the firmware? -Michael Obenland (17-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/246.gif) ![Re: threads - bug in the firmware? -Mike McFarlane (17-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: threads - bug in the firmware? -Ross Crawford (17-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: threads - bug in the firmware? -Mike McFarlane (18-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: threads - bug in the firmware? -Michael Ash (18-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![More on threads -Michael Obenland (18-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: More on threads -Mike McFarlane (19-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: More on threads -Michael Obenland (19-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif) ![](/news/46.gif) ![Re: More on threads -Michael Ash (19-Jan-02 to lugnet.robotics.rcx.legos)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|