[Cbe-oss-dev] [PATCH 3/3] spu sched: forced preemption at execution

Luke Browning LukeBrowning at us.ibm.com
Sun Feb 25 01:29:49 EST 2007







cbe-oss-dev-bounces+lukebrowning=us.ibm.com at ozlabs.org wrote on 02/24/2007
04:38:19 AM:

> On Thu, Feb 22, 2007 at 09:25:04PM -0300, Luke Browning wrote:
> > You might also want to retest the priority fields under the ctx lock to
> > make ensure that the priorities haven't changed.  The code above uses
the
> > runqueue lock, which doesn't protect these fields, right?
>
> Currently these fields are never updated after the context creation,
> so the lock is not needed.  But once we're doing dynamic timeslicing
> we will need to introduce locking here.
>

Hmm, the application should be able to change the priority and policy of a
ctx, if it
changes the priority of the controlling entity (ie. kernel thread or
process).  The
scheduling parameters should be able to be changed dynamically.

Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20070224/938a1703/attachment.htm>


More information about the cbe-oss-dev mailing list