tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Introduce curlwp_bind and curlwp_unbind for psref(9)



> > Since we already use preempt_disable() to force an lwp to stick to a cpu,
> > doesn't that solve the problem?  If need be, we can enforce nonpreemptable
> > lwp's don't migrate.

why would we want to disable preemption in code that merely wants
to run on a particular cpu.

i dno't understand why using the side effect of preempt_disable()
is better than  explicitly stating what is wanted.


.mrg.


Home | Main Index | Thread Index | Old Index