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 / 2657
2656  |  2658
Subject: 
Re: Scheduler patch
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 18 Jun 2002 12:52:25 GMT
Viewed: 
2370 times
  
I have found that using proportional timeslicing works great in many
situations.  It is more forgiving for new developers, since a "runaway"
process will not block processes of lower priority.

(runaway process used here to mean a process which never sleeps... never
enters a wait state)

All tasks run according to their priority... with one exception.  The idle
task only runs if all processes are sleeping.  In my implementation, when
the process pointer hits the idle process, it resets to the top of the list.
Then if the idle task is hit again with no other processes ready to run, it
executes the idle task.  Sorry, I am rambling...

As for runaway processes, of course it is always more efficient to sleep a
process when it is waiting for something; but using proportional timeslicing
is more forgiving if you forget.

// Joe


"Joel Uddén" <afroo@ul.shacknet.nu> wrote in message
news:GxpBxo.5Fs@lugnet.com...
Well, actually not :)

If users don't want proportional timeslicing the patch is completly • useless,
but if they do, it might be usefull.

/Joel


Do you have some examples where your patch could be useful?

Eric



Message has 1 Reply:
  Re: Re: Scheduler patch
 
Joe I think proportional timeslicing would be a nice thing if the implementation would be efficient and straightforward. I don't consider my patch to be that. Would still be nice to see a snippet of your code. How do the other kernel developers feel (...) (22 years ago, 19-Jun-02, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Scheduler patch
 
Well, actually not :) If users don't want proportional timeslicing the patch is completly useless, but if they do, it might be usefull. /Joel (...) (22 years ago, 14-Jun-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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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