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 / 2397
2396  |  2398
Subject: 
RFC: smaller task scheduler
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 25 Mar 2002 14:48:26 GMT
Viewed: 
1591 times
  
I have been working on some changes to the task scheduler (and therefore
execi, kill, killall) and have reduced the size/complexity a bit.  I think
it is ready for use (although I am going to continue to test it).

Here is a bit of info. about it:

Overall:  Cut the kernel size by about 300 bytes.  Improved performance by
reducing complexity.

<Details>
Reduced complexity by putting processes in a '(priority-order) linked list
(or chain)' instead of a 'chain of priority chains.'  Reduces runtime memory
requirements (slightly) by elliminating the priority chain allocation...
just allocates the process data structure.  The two task managers are
functionally equivelent.
Also, I moved the man running/standing visualization to a low priority
process and removed it from the Task Scheduler.  (Seemed to be a bit of
overkill in that interupt handler).  Actually, making this a task added a
few bytes... so kernel size was reduced by about 256 bytes in the end.
</Details>

I did this by adding the file stm.c (simple task manager)  I modified tm.h
and tm.c to add #ifdef   and added a CONF_SIMPLE_TM to the config.h    So,
the old tm and the new tm can be easily swapped.

I modified the latest versions of the files from CVS, so I could just check
them in.  Or I could post the actual code for review.  Or I could generate a
diff and post for review.  How should this be done?

After I finish testing, I will have some time to work on TODOs.... like
setting the RCX ID for lnp during download to the RCX or whatever is needed
most.

Joe



Message has 1 Reply:
  Re: RFC: smaller task scheduler
 
In lugnet.robotics.rcx.legos, Joseph Woolley writes: <snip> (...) This is exciting... <snip> (...) Good work on this! Since you have the config and simple swap we'll need to prove that both versions are still working and I'd like a 2nd opinion (...) (23 years ago, 26-Mar-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
    

Custom Search

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