To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 2232
2231  |  2233
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:
  Re: threads - bug in the firmware?
 
Hi Ross (...) you (...) What are the advantages and disadvantages of this method as opposed to the one I used? mike (23 years ago, 18-Jan-02, to lugnet.robotics.rcx.legos)

18 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR