[haiku-development] Re: On timeslices and cycles

  • From: Danny Robson <danny@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 13 Mar 2009 10:23:34 +1100

On Thu, 12 Mar 2009 20:08:46 -0300
André Braga <meianoite@xxxxxxxxx> wrote:

> What do you think of using timeslices (or time-based quanta) to
> represent the period in which a thread is allowed to run before being
> preempted in an age of CPUs clocking at extremes such as circa 200MHz
> on embedded processors and 3GHz on higher-end desktops? Should the
> quantum be computed based on the clock, instead of fixed at every N
> miliseconds? If so, should it change if clock throttling kicks in?


Quick thought before the morning coffee: It could be more interesting to
incorporate some idea of context switching overhead (which would be
related to clockspeed I grant you) if you're looking at that low level.
If it's extremely cheap to switch why not do it more often?

- Danny

Other related posts: