On Mon Apr  5 02:32:10 EDT 2010, r...@swtch.com wrote:
> instead of adding all sorts of goo to the interface,
> why not just make the ctl write guarantee
> that from the time it returns, the relevant proc
> will only run on the wired mach?

good point.  two reasons
1.  if up != p, what do you sleep on?  or do you mess
with the innards of sched?  seems dangerous

in looking at this again, runproc doesn't test
for p->wired when "cooperativly scheduling".

        /* cooperative scheduling until the clock ticks */
        if((p=m->readied) && p->mach==0 && p->state==Ready
        && runq[Nrq-1].head == nil && runq[Nrq-2].head == nil){

ready() also appears not to check wired.

2.  already rejected:  /n/sources/patch/sorry/wiredswtch
though that approach now looks a little hokey.

- erik

Reply via email to